Skip to content

fix: register physical Tab key on iPadOS hardware keyboards#14

Open
ZacharyZcR wants to merge 1 commit into
Termix-SSH:mainfrom
ZacharyZcR:fix/ipad-physical-tab-key
Open

fix: register physical Tab key on iPadOS hardware keyboards#14
ZacharyZcR wants to merge 1 commit into
Termix-SSH:mainfrom
ZacharyZcR:fix/ipad-physical-tab-key

Conversation

@ZacharyZcR
Copy link
Copy Markdown
Member

Summary

  • Fix Tab key not working with iPadOS Magic Keyboard: The native iOS keyboard module registered Shift+Tab via UIKeyCommand but not bare Tab. Without an explicit registration with wantsPriorityOverSystemBehavior, iOS intercepts the Tab key for its own UI focus navigation, so it never reaches the terminal.
  • Consolidate Tab handling in JS: Both Tab and Shift+Tab are now handled in a single branch, sending \t or \x1b[Z respectively.

Files Changed

File Change
modules/hardware-keyboard/ios/HardwareKeyboardModule.swift Register unmodified Tab UIKeyCommand with priority over system
app/tabs/sessions/Sessions.tsx Handle both Tab and Shift+Tab in one condition

Test plan

  • Connect to a host on iPad with Magic Keyboard
  • Press Tab — should trigger tab completion in the shell
  • Press Shift+Tab — should send reverse-tab (\x1b[Z)
  • Verify Ctrl+key combinations still work
  • Verify arrow keys, Escape still work

Fixes Termix-SSH/Support#557

The native module only registered Shift+Tab but not bare Tab, so iOS
intercepted it for UI focus navigation. Register an unmodified Tab
UIKeyCommand with wantsPriorityOverSystemBehavior and handle both
Tab and Shift+Tab in the same JS branch.

Fixes Termix-SSH/Support#557
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.

[BUG] IPadOS Magic Keyboard not working

1 participant