Repository navigation
Paste emojis into GTK3 and WebKitGTK apps - #15327
stevederico wants to merge 1 commit into
Conversation
The emoji helper pastes with a single wtype chord, so wtype uploads a keymap holding only Insert. GTK3 skips the highest keycode when it matches key bindings, and WebKitGTK maps editing keys through the same bindings, so Shift+Insert never pastes there (Tauri apps such as GitHub Copilot Desktop). Chromium and Electron match shortcuts themselves and were unaffected. Releasing VoidSymbol in the same call gives the keymap a second, higher key. It is never pressed, so the compositor drops the release and no extra key event reaches the app. The clipboard stays non-persistent. Fixes omacom#12205
|
|
Thanks for this. I tested it on a worker built from the Omarchy ISO (Hyprland 0.56.2, wtype 0.4-2), running quattro's helper and then yours at 966e4cd against the same probe windows:
Codex Medium reviewed it as a second opinion and found no defects. It checked wtype's source to confirm that Two older open pull requests change the same line: #6892 (Ctrl+V outside terminals, Ctrl+Shift+V in them) and #8573. On the same worker, neither pasted into the GTK3 or WebKitGTK probe, because each still uploads a keymap holding only Nothing is left for you to do. This is waiting on the maintainer. |
The clipboard manager pastes text and file entries with a single wtype chord, so wtype uploads a keymap holding only Insert. GTK3 skips the highest keycode when it matches key bindings, and WebKitGTK maps editing keys through the same bindings, so Shift+Insert never pastes there. Chromium and Electron match shortcuts themselves and were unaffected. Releasing VoidSymbol in the same call gives the keymap a second, higher key. It is never pressed, so the compositor drops the release and no extra key event reaches the app. This is the same fix as omacom#15327 for the emoji picker.
The clipboard manager pastes text and file entries with a single wtype chord, so wtype uploads a keymap holding only Insert. GTK3 skips the highest keycode when it matches key bindings, and WebKitGTK maps editing keys through the same bindings, so Shift+Insert never pastes there. Chromium and Electron match shortcuts themselves and were unaffected. Releasing VoidSymbol in the same call gives the keymap a second, higher key. It is never pressed, so the compositor drops the release and no extra key event reaches the app. This is the same fix as omacom#15327 for the emoji picker.
The emoji picker pastes with one
wtypechord, so wtype uploads a keymap holding only Insert. GTK3 skips the highest keycode when matching key bindings, and WebKitGTK maps editing keys through the same bindings, so Shift+Insert never pastes there (Tauri apps such as GitHub Copilot Desktop). Chromium and Electron match shortcuts themselves and were unaffected.Fixes #12205
Changes
bin/omarchy-menu-emoji-insert: also releaseVoidSymbolin the samewtypecall. That gives the keymap a second, higher key. It is never pressed, so the compositor drops the release and no extra key event reaches the app. The clipboard stays non-persistent.test/shell.d/emojis-test.sh: checks Insert is not the highest keycode wtype uploadsTests
Run on an Omarchy box:
test/shell.d/emojis-test.sh: pass (11 ok)Not changed here
Clipboard-manager paste uses the same single-key chord and has the same issue in GTK3 and WebKitGTK apps. Left for a follow-up so this stays one change.