mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2025-01-26 03:36:32 +11: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:
parent
7e1c70964d
commit
1609808e27
3 changed files with 4 additions and 0 deletions
|
@ -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,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue