[Interest] Qt 5.2.1 Mac keyboard shortcut problems

Paul Miller paul at fxtech.com
Wed Apr 2 22:15:03 CEST 2014


On 4/2/2014 2:30 PM, Till Oliver Knoll wrote:
> Am 02.04.2014 um 21:12 schrieb Paul Miller <paul at fxtech.com>:
>
>> On 4/2/2014 1:46 PM, maitai at virtual-winds.org wrote:
>>>
>>> If I remember well under mac/os you have to press the <fn> key (whatever
>>> apple calls it) together with the hot-key to get it works under qt5.x
>>
>> So you're saying keyboard shortcuts in the menubar must start with the
>> Cmd key?
>
> So you're saying that you have keyboard shortcuts in the menubar which don't start with the Cmd (btw: != Fn = Function key)? ;)

Yeah - I have a View menu for instance that has a "Zoom In" option with 
the accelerator/shortcut "i". This has always worked with previous Qt 
versions/OS X releases, and I believe is a supported type of accelerator 
on OS X.

I was able to work around these by adding explicit QShortcuts that 
implement them. It's just the automatic support from QMenu that wasn't 
working.

> I have never seen such a thing, on any platform (I /have/ seen applications such as Blender that use all sorts of weird shortcuts, depending on the "edit mode" etc. - I am just saying that I have never seen *menu* shortcuts consisting of a single letter, e.g. just S instead of CMD + S for save).

> I don't have the answer, but I could imagine that this is a "Mac thing" not to allow this. Refer to the Apple Human Interface Design guidelines.

There aren't many but there is precedent. Final Cut Pro X for instance 
uses single-letter menu shortcuts.




More information about the Interest mailing list