mirror of
https://github.com/rust-windowing/winit.git
synced 2026-09-01 14:20:05 -04:00
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:
committed by
Pierre Krieger
parent
7e1c70964d
commit
1609808e27
@@ -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)`
|
- 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.
|
- 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)
|
# Version 0.10.0 (2017-12-27)
|
||||||
|
|
||||||
|
|||||||
@@ -344,6 +344,8 @@ pub enum VirtualKeyCode {
|
|||||||
/// The "Compose" key on Linux.
|
/// The "Compose" key on Linux.
|
||||||
Compose,
|
Compose,
|
||||||
|
|
||||||
|
Caret,
|
||||||
|
|
||||||
Numlock,
|
Numlock,
|
||||||
Numpad0,
|
Numpad0,
|
||||||
Numpad1,
|
Numpad1,
|
||||||
|
|||||||
@@ -746,6 +746,7 @@ fn to_virtual_key_code(code: u16) -> Option<events::VirtualKeyCode> {
|
|||||||
0x7e => events::VirtualKeyCode::Up,
|
0x7e => events::VirtualKeyCode::Up,
|
||||||
//0x7f => unkown,
|
//0x7f => unkown,
|
||||||
|
|
||||||
|
0xa => events::VirtualKeyCode::Caret,
|
||||||
_ => return None,
|
_ => return None,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user