fix(core): switch Wayland to the SHIFT+INSERT paste combination by default. Fix #899
This commit is contained in:
parent
08483e73b1
commit
92b85427ed
|
@ -81,6 +81,11 @@ impl<'a> ClipboardInjectorAdapter<'a> {
|
||||||
custom_combination
|
custom_combination
|
||||||
} else if cfg!(target_os = "macos") {
|
} else if cfg!(target_os = "macos") {
|
||||||
vec![Key::Meta, Key::V]
|
vec![Key::Meta, Key::V]
|
||||||
|
} else if cfg!(target_os = "linux") && cfg!(feature = "wayland") {
|
||||||
|
// Because on Wayland we currently don't have app-specific configs (and therefore no patches)
|
||||||
|
// we switch to the more supported SHIFT+INSERT combination
|
||||||
|
// See: https://github.com/federico-terzi/espanso/issues/899
|
||||||
|
vec![Key::Shift, Key::Insert]
|
||||||
} else {
|
} else {
|
||||||
vec![Key::Control, Key::V]
|
vec![Key::Control, Key::V]
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user