Skip to content

Game screen: a hardware keyboard runs the profile's key bindings, and desktop's Alt shortcuts - #181

Open
vadi2 wants to merge 4 commits into
mainfrom
ccr-14671218-tf96z6-keyboards-app
Open

vadi2 wants to merge 4 commits into
mainfrom
ccr-14671218-tf96z6-keyboards-app

Conversation

@vadi2

@vadi2 vadi2 commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Brief overview of PR changes/additions

  • A key the profile's key bindings take goes to the engine as pressKey. Any other key types as before. This covers numpad walking (by Num Lock, as on desktop), F-keys and Ctrl/Alt combinations, from the input line or anywhere on the game screen except a script's text box, which desktop also keeps for itself.
  • HardwareKeys turns Android's key codes and meta state into Qt's key and modifier bits. The right Alt (AltGr on most layouts) is not Qt's Alt.
  • A binding beats the app's Ctrl+R and Ctrl+Tab, as desktop's command line claims a bound profile-switching shortcut.
  • Desktop's main-window shortcuts open the app's screens and beat a binding, as a QShortcut does: Alt+E scripts, Alt+P settings, Alt+M map, Alt+C games, Alt+D/R/W disconnect, reconnect and close.
  • The key page's "not passed on yet" note is gone.

Motivation for adding to Mudlet

Players on a Chromebook or a tablet with a keyboard can walk with the numpad and use their packages' F-keys, as on desktop.

Other info (issues closed, discussion etc)

🤖 Generated with Claude Code

https://claude.ai/code/session_016ujaeFyaqXXDx8xjoThE6J

@vadi2
vadi2 force-pushed the ccr-14671218-tf96z6-keyboards-app branch from a3956b4 to d90f86c Compare November 18, 2026 02:27
A key down whose Qt key and modifiers are in the engine's keyBindings list
goes as pressKey, from the input line or anywhere on the game screen but a
script's text box (which offers no key to the bindings on the desktop
either); its key up is swallowed too. HardwareKeys maps Android's key code
and meta state to Qt's: the number pad by Num Lock with the Keypad bit,
F1-F12, named keys, and a printable key as the character it types
upper-cased. The key page's note that keys do not reach bindings yet goes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016ujaeFyaqXXDx8xjoThE6J
Desktop's command line claims a profile-switching shortcut a binding takes,
and has no Ctrl+R of its own, so a bound key runs its binding there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016ujaeFyaqXXDx8xjoThE6J
…nding

Alt+E the scripts, Alt+P the settings, Alt+M the map, Alt+C the games, and
Alt+D, Alt+R and Alt+W disconnect, reconnect and close the game, as
mudlet.cpp gives them off macOS; a QShortcut there beats a binding on the
same key. The left Alt only, as the right one is AltGr on most layouts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016ujaeFyaqXXDx8xjoThE6J
@vadi2
vadi2 force-pushed the ccr-14671218-tf96z6-keyboards-app branch from d90f86c to 690c825 Compare November 18, 2026 02:59

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants