espanso / espanso

Cross-platform Text Expander written in Rust

Home Page:https://espanso.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorrect replacements with pressed Shift key

formicant opened this issue · comments

Description

Now, replacements do not occur while a shift key is pressed. Instead, they are activated after the shift key is released, This can lead to incorrect replacements.

Steps to reproduce

  1. Add the following match:
matches:
  - trigger: ":)"
    replace: ""
  1. Hold a shift key down
  2. Type :)TEXT (without releasing the shift key)
  3. Release the shift key

The actual result is:
:)TE☺

Expected behavior

☺TEXT

Screenshots

No response

Logs

No response

Your environment

  • Environment name and version: rust 1.75.0 (82e1608df 2023-12-21)
  • Operating system: Arch Linux, X11, KDE Plasma 6.0.3
  • Espanso version 2.2.1

Self-service

  • I'd be willing to fix this bug myself.

Duplicate of #940, #1405.