feat(wayland): shortcut inhibit
This commit is contained in:
parent
8e7b7e586f
commit
54a69a0523
11 changed files with 360 additions and 8 deletions
|
|
@ -1,5 +1,7 @@
|
|||
// Borrowed from winit
|
||||
use iced_runtime::keyboard::{Key, Location, key::Named};
|
||||
use winit::keyboard::{KeyCode, NativeKeyCode, PhysicalKey};
|
||||
|
||||
/// Map the raw X11-style keycode to the `KeyCode` enum.
|
||||
///
|
||||
/// X11-style keycodes are offset by 8 from the keycodes the Linux kernel uses.
|
||||
|
|
@ -838,8 +840,6 @@ pub fn keysym_to_key(keysym: u32) -> Key {
|
|||
})
|
||||
}
|
||||
|
||||
use iced_runtime::keyboard::{Key, Location, key::Named};
|
||||
|
||||
pub fn keysym_location(keysym: u32) -> Location {
|
||||
use xkbcommon_dl::keysyms;
|
||||
match keysym {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue