Add support for Caret (^) Key in OSX (de_DE) (#380)

* Add caret key

* Use hex value

* Added caret key support.
This commit is contained in:
Michael Schumacher 2018-01-25 13:32:30 +01:00 committed by Pierre Krieger
parent 7e1c70964d
commit 1609808e27
3 changed files with 4 additions and 0 deletions

View file

@ -2,6 +2,7 @@
- Added method `os::macos::WindowBuilderExt::with_movable_by_window_background(bool)` that allows to move a window without a titlebar - `with_decorations(false)`
- Implement `Window::set_fullscreen`, `Window::set_maximized` and `Window::set_decorations` for Wayland.
- Added `Caret` as VirtualKeyCode and support OSX ^-Key with german input.
# Version 0.10.0 (2017-12-27)

View file

@ -344,6 +344,8 @@ pub enum VirtualKeyCode {
/// The "Compose" key on Linux.
Compose,
Caret,
Numlock,
Numpad0,
Numpad1,

View file

@ -746,6 +746,7 @@ fn to_virtual_key_code(code: u16) -> Option<events::VirtualKeyCode> {
0x7e => events::VirtualKeyCode::Up,
//0x7f => unkown,
0xa => events::VirtualKeyCode::Caret,
_ => return None,
})
}