feat(cli): add support for numpad SS3 sequences#19659
Conversation
Summary of ChangesHello @scidomino, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request enhances the command-line interface's input handling by introducing robust support for numpad keys when the terminal is in Application Keypad Mode. This ensures that users' numpad inputs are accurately translated into their intended characters, significantly improving the interactive experience and functionality for CLI applications that rely on numeric input. Highlights
Changelog
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
The pull request introduces support for numpad keys in Application Keypad Mode (SS3 sequences). However, the current implementation has a high-severity logic issue that violates consistency with existing UI behavior: it unconditionally marks numpad keys as insertable and overwrites their raw escape sequences, even when modifier keys like Ctrl or Alt are pressed. This inconsistency will likely break keyboard shortcuts or lead to unexpected character insertion when using modified numpad keys.
|
Size Change: +444 B (0%) Total Size: 25.2 MB ℹ️ View Unchanged
|
3456744 to
6cfe191
Compare
Summary
Adds support for numpad keys in Application Keypad Mode (SS3 sequences).
Details
Maps
ESC O <char>sequences to their respective numeric and operator characters to ensure numpad input is correctly handled.Related Issues
Fixes #12288
How to Validate
On ghostty add
keybind = f1=text:\x1bOjto your settings, restart, and then hit f1Pre-Merge Checklist