Terminal.Gui
Terminal.Gui copied to clipboard
Some keyboard shortcuts are not working on Mac?
This is excellent. We should figure out why the keyboard shortcuts are not working on Mac.
Originally posted by @tig in https://github.com/gui-cs/Terminal.Gui/discussions/2608#discussioncomment-5834527
To help shed some light on this, here is how I am defining my keyboard shortcuts in my MainWindow:
_statusBar = new StatusBar(new StatusItem[]
{
new(Key.AltMask | Key.S, "Save (Alt+S)", SaveFile),
new(Key.AltMask | Key.Q, "Quit (Alt+Q)", () => Application.RequestStop()),
new(Key.AltMask | Key.I, "About (Alt+I)", ShowAbout)
});
So when I built my application (targeting macOS-x64) and tried it out on my MacBook Pro (M1 Pro), I tried to do the key combinations using the Option key, but nothing would happen. I thought it might be the default Terminal so I tried it with iTerm2, but same result.
Can someone try to reproduce with v2_develop?