Terminal.Gui icon indicating copy to clipboard operation
Terminal.Gui copied to clipboard

Some keyboard shortcuts are not working on Mac?

Open tig opened this issue 2 years ago • 8 comments

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

tig avatar May 08 '23 06:05 tig

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.

HoofedEar avatar May 08 '23 22:05 HoofedEar

Can someone try to reproduce with v2_develop?

tig avatar Jan 19 '24 16:01 tig