[aseprite] 26/134: Fix Alt+Mnemonic on Mac OS X

Tobias Hansen thansen at moszumanska.debian.org
Sat Mar 14 17:09:57 UTC 2015


This is an automated email from the git hooks/post-receive script.

thansen pushed a commit to branch master
in repository aseprite.

commit 22c3651c635a4bf93f81bd8dd1b2e7c0982a0bfc
Author: David Capello <davidcapello at gmail.com>
Date:   Sat Nov 1 12:44:07 2014 -0300

    Fix Alt+Mnemonic on Mac OS X
---
 src/ui/button.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ui/button.cpp b/src/ui/button.cpp
index 70bd09d..e975eda 100644
--- a/src/ui/button.cpp
+++ b/src/ui/button.cpp
@@ -105,7 +105,7 @@ bool ButtonBase::onProcessMessage(Message* msg)
         bool mnemonicPressed =
           (msg->altPressed() &&
            getMnemonicChar() &&
-           getMnemonicChar() == tolower(keymsg->unicodeChar()));
+           getMnemonicChar() == scancode_to_unicode(keymsg->scancode()));
 
         // For kButtonWidget
         if (m_behaviorType == kButtonWidget) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/aseprite.git



More information about the Pkg-games-commits mailing list