Cmd+mnemonic on macOS now can press a button

This commit is contained in:
David Capello 2016-11-24 19:26:52 -03:00
parent 701170d85e
commit 74248cf33c

View File

@ -100,7 +100,7 @@ bool ButtonBase::onProcessMessage(Message* msg)
// If the button is enabled. // If the button is enabled.
if (isEnabled()) { if (isEnabled()) {
bool mnemonicPressed = bool mnemonicPressed =
(msg->altPressed() && ((msg->altPressed() || msg->cmdPressed()) &&
mnemonicCharPressed(keymsg)); mnemonicCharPressed(keymsg));
// For kButtonWidget // For kButtonWidget