Use .modified_sym() instead of casting keycode to keysym
Not sure if this is actually used, and if so the code may need more testing, but this definitely is more correct, at least.
This commit is contained in:
parent
01d78689b5
commit
d02aecce61
2 changed files with 2 additions and 3 deletions
|
|
@ -391,7 +391,7 @@ impl State {
|
|||
let action = Action::Private(PrivateAction::Resizing(direction, edge.into(), cosmic_keystate_from_smithay(state)));
|
||||
let key_pattern = shortcuts::Binding {
|
||||
modifiers: cosmic_modifiers_from_smithay(modifiers.clone()),
|
||||
key: Some(Keysym::new(handle.raw_code().raw())),
|
||||
key: Some(handle.modified_sym()),
|
||||
description: None,
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,6 @@ use smithay::{
|
|||
},
|
||||
utils::Serial,
|
||||
};
|
||||
use xkbcommon::xkb::Keysym;
|
||||
|
||||
use crate::{
|
||||
config::key_bindings::cosmic_modifiers_from_smithay,
|
||||
|
|
@ -81,7 +80,7 @@ impl KeyboardGrab<State> for SwapWindowGrab {
|
|||
modifiers: modifiers
|
||||
.map(cosmic_modifiers_from_smithay)
|
||||
.unwrap_or_default(),
|
||||
key: Some(Keysym::new(keycode)),
|
||||
key: Some(handle.keysym_handle(keycode).modified_sym()),
|
||||
description: None,
|
||||
},
|
||||
None,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue