diff options
author | tomaka <pierre.krieger1708@gmail.com> | 2016-02-09 09:53:58 +0100 |
---|---|---|
committer | tomaka <pierre.krieger1708@gmail.com> | 2016-02-09 09:53:58 +0100 |
commit | 03ca5d5216df371d4146717accb2cd609a76e6a8 (patch) | |
tree | de53f2dfb4bfa78ceb53002850628739392dfe7e /src | |
parent | 3246613a51568073e40ee99efeb0c76c36db3ecc (diff) | |
parent | 202f8c5a2dbeaa606f01985a0cf9a972eaf331e9 (diff) | |
download | glutin-03ca5d5216df371d4146717accb2cd609a76e6a8.tar.gz glutin-03ca5d5216df371d4146717accb2cd609a76e6a8.zip |
Merge pull request #722 from paulrouget/azerty
allow non ascii character in ReceivedCharacter
Diffstat (limited to 'src')
-rw-r--r-- | src/api/cocoa/mod.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/api/cocoa/mod.rs b/src/api/cocoa/mod.rs index 66244d8..d35182e 100644 --- a/src/api/cocoa/mod.rs +++ b/src/api/cocoa/mod.rs @@ -837,9 +837,7 @@ unsafe fn NSEventToEvent(window: &Window, nsevent: id) -> Option<Event> { let received_c_str = nsevent.characters().UTF8String(); let received_str = CStr::from_ptr(received_c_str); for received_char in from_utf8(received_str.to_bytes()).unwrap().chars() { - if received_char.is_ascii() { - events.push_back(ReceivedCharacter(received_char)); - } + events.push_back(ReceivedCharacter(received_char)); } let vkey = event::vkeycode_to_element(NSEvent::keyCode(nsevent)); |