Skip to content

Accent Hold 2.2

Choose a tag to compare

@d101c d101c released this 03 Nov 08:27
· 32 commits to master since this release
7113309

Maintenance release after an independent code review of 2.1 (see PR #9 for the full table).

Fixed

  • Key repeat: when the popup opens, the release of the held letter is forwarded to the application and the replacement counts the letters actually inserted since the press (clients that repeat on their own side no longer leave eeeeè). Verified against the mutter sources; see the README for what is guaranteed per GNOME version.
  • Both popups stay inside the monitor; a stale cursor rectangle from a previous window is ignored.
  • Space closes the popup and keeps the plain letter; Enter does too unless you navigated with the arrows first.
  • Pressing the held letter again after releasing it types it instead of being swallowed.
  • The shortcut picker no longer touches the clipboard: it commits through the shell input method (requires an application using the GNOME input method).
  • A deferred replacement is dropped if the focused window changed; getSurroundingText() handled on GNOME 45 and 46+.
  • Table override validated; a bare letter is refused as shortcut.
  • Keybinding key renamed accent-hold-shortcut (old value migrated once) so it cannot collide with other extensions; the IBus prototype wrapper is installed only while press-and-hold is on and restored only if still ours.

Tests: 54 cases with plain gjs (extension/tests/run.sh).

Install: download the zip below and run gnome-extensions install --force accent-hold@griffit.gmail.com.shell-extension.zip, then log out and back in.