We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug When pressing an alt shortcut on a menu with a separator you get null reference exception.
This is because separators are represented as null in menu items.
null
To Reproduce
Screenshots
Null reference > Terminal.Gui.dll!Terminal.Gui.MenuBar.FindAndOpenChildrenMenuByHotkey(Terminal.Gui.KeyEvent kb, Terminal.Gui.MenuItem[] children) Line 1847 C# Terminal.Gui.dll!Terminal.Gui.MenuBar.FindAndOpenMenuByHotkey(Terminal.Gui.KeyEvent kb) Line 1828 C# Terminal.Gui.dll!Terminal.Gui.MenuBar.ProcessHotKey(Terminal.Gui.KeyEvent kb) Line 1947 C# Terminal.Gui.dll!Terminal.Gui.View.ProcessHotKey(Terminal.Gui.KeyEvent keyEvent) Line 361 C# Terminal.Gui.dll!Terminal.Gui.Application.ProcessKeyEvent(Terminal.Gui.KeyEvent ke) Line 1264 C# Terminal.Gui.dll!Terminal.Gui.WindowsDriver.ProcessInput(Terminal.Gui.WindowsConsole.InputRecord inputEvent) Line 984 C# Terminal.Gui.dll!Terminal.Gui.WindowsMainLoop.Terminal.Gui.IMainLoopDriver.Iteration() Line 1932 C# Terminal.Gui.dll!Terminal.Gui.MainLoop.RunIteration() Line 339 C# Terminal.Gui.dll!Terminal.Gui.Application.RunMainLoopIteration(ref Terminal.Gui.RunState state, ref bool firstIteration) Line 633 C# Terminal.Gui.dll!Terminal.Gui.Application.RunLoop(Terminal.Gui.RunState state) Line 615 C# Terminal.Gui.dll!Terminal.Gui.Application.Run(Terminal.Gui.Toplevel view, System.Func<System.Exception, bool> errorHandler) Line 498 C# Terminal.Gui.dll!Terminal.Gui.Application.Run<UICatalog.UICatalogApp.UICatalogTopLevel>(System.Func<System.Exception, bool> errorHandler, Terminal.Gui.ConsoleDriver driver, Terminal.Gui.IMainLoopDriver mainLoopDriver) Line 443 C# UICatalog.dll!UICatalog.UICatalogApp.RunUICatalogTopLevel() Line 214 C# UICatalog.dll!UICatalog.UICatalogApp.Main(string[] args) Line 115 C#
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Fixes gui-cs#2892 for v1 - Null reference pressing menu shortcuts whe…
44b88f3
…n menus have separators
Add unit test for the gui-cs#2892 fix.
16a77c2
Fixes #2892 for v1 - Null reference pressing menu shortcuts when menu…
d51322a
…s have separators (#2955)
Add unit test for the #2892 fix. (#2956)
7b46b1d
Successfully merging a pull request may close this issue.
Describe the bug
When pressing an alt shortcut on a menu with a separator you get null reference exception.
This is because separators are represented as
null
in menu items.To Reproduce
Screenshots
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: