Skip to content

terminal: preserve modified physical Enter keys - #5256

Open
tianrking wants to merge 1 commit into
termux:masterfrom
tianrking:codex/preserve-enter-modifiers
Open

terminal: preserve modified physical Enter keys#5256
tianrking wants to merge 1 commit into
termux:masterfrom
tianrking:codex/preserve-enter-modifiers

Conversation

@tianrking

Copy link
Copy Markdown

Closes #5198

KeyHandler currently emits the same carriage return for physical Enter, Shift+Enter, and Ctrl+Enter. This prevents terminal applications from using a modified Enter as an insertion/newline action.

This change keeps the existing plain Enter (CR) and Alt+Enter (ESC CR) behavior, while mapping physical Shift+Enter and Ctrl+Enter to LF. The modifier check is intentionally limited to the existing key path and does not enable a new keyboard protocol unconditionally.

Validation:

  • KeyHandlerTest compiled against Android API 36 with JUnit 4.13.2 and ran successfully (OK (2 tests)).
  • git diff --check

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.

[Feature]: Preserve Shift/Ctrl modifiers for physical Enter key events

1 participant