mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2025-01-11 13:31:29 +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
|
@ -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)
|
||||
|
||||
|
|
|
@ -344,6 +344,8 @@ pub enum VirtualKeyCode {
|
|||
/// The "Compose" key on Linux.
|
||||
Compose,
|
||||
|
||||
Caret,
|
||||
|
||||
Numlock,
|
||||
Numpad0,
|
||||
Numpad1,
|
||||
|
|
|
@ -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,
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue