mirror of https://github.com/aseprite/aseprite.git
Cmd+mnemonic on macOS now can press a button
This commit is contained in:
parent
701170d85e
commit
74248cf33c
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue