Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
The default keystroke to 'Move focus to the menu bar' on a Mac is Control-F2. MonoDevelop doesn't react on that key. It is simply ignored. (And no, the windows F10 alternative doesn't work either)
There is even no way to define a binding for this, unless it has a funny name. When I search for commands having the word 'menu' as part of the name, it does not show any hits.
Hmm, we're letting Control+F2 pass up to gtk (i.e. we're not grabbing it), so this should work... but it isn't.
Wonder if this is a gtk bug?
None of the gtk+ test apps seem to pass Control+F2 up to the menubar either.
Either this is a gtk+ bug or else MacOS apps need to explicitly call something to focus the menubar, but that seems really strange.
We have the same issue with the key combination that opens the help menu's search box (which is useful for finding and activating menu commands). I'm pretty sure GTK's suppressing Cocoa's built-in key combination handlers.
Maybe we can assign this to the gtk hackers :-)
Jeff, is this something that your new keyboard code would fix?
Nope. The problem is that GTK doesn't pass unhandled keystrokes through to Cocoa, so some built-in behaviours don't work. In some cases they can't be reimplemented either.
I have a simple patch to fix this, but will investigate if there is a more general solution.
Are there other very common key combinations that should also be ignored by gtk?
Command-? focuses the help menu's search box. We have another bug open for that IIRC.
Be in mind that these can be rebound in system preferences. Not sure how important that really is though.
I found an API, CopySymbolicHotKeys(), that I believe will retrieve all these global hotkeys. So I'm making a patch to check the key against that, hopefully it will solve these.
I've got a pull request that implements this: https://github.com/mono/bockbuild/pull/6/files
Patch was reverted as it caused bug 16161.
This bug was targeted for a past milestone, moving to the next active milestone.
Fixed in bockbuild a40ff424ac6d4ba6210558f0e35f34716bf41fb4
*** Bug 15227 has been marked as a duplicate of this bug. ***