[aseprite] 175/250: Fix Alt+char on Skia/OSX
Tobias Hansen
thansen at moszumanska.debian.org
Sun Dec 20 15:27:28 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 ba194a817fe2ebb569fad261fb8c62119014011f
Author: David Capello <davidcapello at gmail.com>
Date: Wed Oct 14 15:53:47 2015 -0300
Fix Alt+char on Skia/OSX
---
src/she/osx/view.mm | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/she/osx/view.mm b/src/she/osx/view.mm
index fe8360b..7839175 100644
--- a/src/she/osx/view.mm
+++ b/src/she/osx/view.mm
@@ -113,10 +113,10 @@ inline Event::MouseButton get_mouse_buttons(NSEvent* event)
ev.setScancode(cocoavk_to_scancode(event.keyCode));
ev.setRepeat(event.ARepeat ? 1: 0);
- if (event.characters &&
- event.characters.length >= 1) {
- ev.setUnicodeChar([event.characters characterAtIndex:0]);
- }
+ // TODO we should use event.characters
+ NSString* chars = event.charactersIgnoringModifiers;
+ if (chars && chars.length >= 1)
+ ev.setUnicodeChar([chars characterAtIndex:0]);
queue_event(ev);
}
--
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