aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Rouget <me@paulrouget.com>2016-02-08 14:42:44 +0100
committerPaul Rouget <me@paulrouget.com>2016-02-08 14:45:02 +0100
commit202f8c5a2dbeaa606f01985a0cf9a972eaf331e9 (patch)
treede53f2dfb4bfa78ceb53002850628739392dfe7e /src
parent3246613a51568073e40ee99efeb0c76c36db3ecc (diff)
downloadglutin-202f8c5a2dbeaa606f01985a0cf9a972eaf331e9.tar.gz
glutin-202f8c5a2dbeaa606f01985a0cf9a972eaf331e9.zip
allow non ascii character in ReceivedCharacter
Diffstat (limited to 'src')
-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));