From 1ca62fa1115e26ef5b6d2e04d6842f40a498f55c Mon Sep 17 00:00:00 2001 From: Daniel Collin Date: Fri, 8 Jul 2016 13:56:41 +0200 Subject: [PATCH] Fixed Backspace on Linux --- src/os/unix/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os/unix/mod.rs b/src/os/unix/mod.rs index 957dd8a..aac97da 100644 --- a/src/os/unix/mod.rs +++ b/src/os/unix/mod.rs @@ -132,7 +132,7 @@ unsafe extern "C" fn key_callback(window: *mut c_void, key: i32, s: i32) { XK_braceright => (*win).key_handler.set_key_state(Key::RightBracket, state), XK_semicolon => (*win).key_handler.set_key_state(Key::Semicolon, state), XK_slash => (*win).key_handler.set_key_state(Key::Slash, state), - //XK_backslash => (*win).key_handler.set_key_state(Key::Backspace, state), + XK_BackSpace => (*win).key_handler.set_key_state(Key::Backspace, state), XK_Delete => (*win).key_handler.set_key_state(Key::Delete, state), XK_End => (*win).key_handler.set_key_state(Key::End, state), XK_Return => (*win).key_handler.set_key_state(Key::Enter, state),