fix(core): add SHIFT as conflicting modifier to avoid bad pasting when trigger ends with shifted char
This commit is contained in:
parent
48d05a3f32
commit
b6fcc1723c
|
@ -32,10 +32,12 @@ use crate::engine::process::ModifierStatusProvider;
|
||||||
/// after a while.
|
/// after a while.
|
||||||
const MAXIMUM_MODIFIERS_PRESS_TIME_RECORD: Duration = Duration::from_secs(30);
|
const MAXIMUM_MODIFIERS_PRESS_TIME_RECORD: Duration = Duration::from_secs(30);
|
||||||
|
|
||||||
// TODO: should we add also Shift on Linux to avoid any conflict in the expansion process? Investigate
|
const CONFLICTING_MODIFIERS: &[Modifier] = &[
|
||||||
/// These are the modifiers that might conflict with the expansion process. For example,
|
Modifier::Ctrl,
|
||||||
/// if espanso injects some texts while Alt or Ctrl are pressed, strange things might happen.
|
Modifier::Alt,
|
||||||
const CONFLICTING_MODIFIERS: &[Modifier] = &[Modifier::Ctrl, Modifier::Alt, Modifier::Meta];
|
Modifier::Meta,
|
||||||
|
Modifier::Shift,
|
||||||
|
];
|
||||||
|
|
||||||
#[derive(Debug, Hash, PartialEq, Eq)]
|
#[derive(Debug, Hash, PartialEq, Eq)]
|
||||||
pub enum Modifier {
|
pub enum Modifier {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user