aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2016-02-09 09:53:58 +0100
committertomaka <pierre.krieger1708@gmail.com>2016-02-09 09:53:58 +0100
commit03ca5d5216df371d4146717accb2cd609a76e6a8 (patch)
treede53f2dfb4bfa78ceb53002850628739392dfe7e
parent3246613a51568073e40ee99efeb0c76c36db3ecc (diff)
parent202f8c5a2dbeaa606f01985a0cf9a972eaf331e9 (diff)
downloadglutin-03ca5d5216df371d4146717accb2cd609a76e6a8.tar.gz
glutin-03ca5d5216df371d4146717accb2cd609a76e6a8.zip
Merge pull request #722 from paulrouget/azerty
allow non ascii character in ReceivedCharacter
-rw-r--r--src/api/cocoa/mod.rs4
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));