#2499: [Keymap] hotkeys doesn't work with some keymaps ----------------------------------+---------------------------- Reporter: diver | Owner: axeld Type: bug | Status: new Priority: normal | Milestone: R1 Component: Kits/Interface Kit | Version: R1/Development Resolution: | Keywords: Blocked By: | Blocking: 6225 Has a Patch: 0 | Platform: All ----------------------------------+---------------------------- Comment (by leavengood): TL;DR: We probably need to make shortcuts translatable. Full version: One of my interests is the Haiku menu shortcuts and making sure they work right, and I have plans for introducing a ShortcutManager within the Interface Kit to improve the code. Of course that alone won't solve this issue, but while I was working on such a thing I could try to solve this problem. The Alt+ combo is one of the few US or UK keymap problems which is affected by this (see #7428), but I know for other keymaps this is a much bigger issue (hence this ticket.) Feeling this is a complex issue with other people might have solved, I did some searching and found the Qt documentation for QKeySequence: http://doc.qt.nokia.com/4.7-snapshot/qkeysequence.html Of particular interest to this ticket is their discussion of keyboard layout issues: http://doc.qt.nokia.com/4.7-snapshot/qkeysequence.html#keyboard-layout- issues So based on the above it seems that more or less the best way to handle this is to translate the shortcuts. Of course as they discuss, the translations may not always match the keyboard layout of all the speakers of a particular language, but they are probably better than no shortcuts working at all. I also was very interested in their list of "standard shortcuts": http://doc.qt.nokia.com/4.7-snapshot/qkeysequence.html#StandardKey-enum While Qt's use of this is mainly because it runs on multiple OSes I have thought that defining such a list in Haiku with a preference application would allow for maximum customizing of shortcuts for all users. The above list would be a good start should we decide to do that, but this is definitely an R2 thing. For now I think it would be nice to add preferences for some of the hard- coded shortcuts for OS-level commands (the menu key opening the Deskbar menu being the most egregious, defined within the keyboard device!!!) But I digress: the question for this ticket is whether it would be possible to add translated shortcuts without breaking the existing API. Also the shortcut handling needs to be smarter so that it can figure out that Cmd-Shift-= is the same as Cmd-+ on the US and UK keymap, with similar smarts on other keymaps. But I think that is different than the issue in this ticket. -- Ticket URL: <http://dev.haiku-os.org/ticket/2499#comment:17> Haiku <http://dev.haiku-os.org> Haiku - the operating system.