fix(core): switch Wayland to the SHIFT+INSERT paste combination by default. Fix #899

This commit is contained in:
Federico Terzi 2021-12-21 20:59:37 +01:00
parent 08483e73b1
commit 92b85427ed

View File

@ -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]
}; };