Skip to content

fix terminal hotkeys doubling#563

Merged
Kitenite merged 1 commit intomainfrom
fix-terminal-hotkeys
Jan 1, 2026
Merged

fix terminal hotkeys doubling#563
Kitenite merged 1 commit intomainfrom
fix-terminal-hotkeys

Conversation

@Kitenite
Copy link
Copy Markdown
Collaborator

@Kitenite Kitenite commented Jan 1, 2026

Description

Related Issues

Type of Change

  • Bug fix
  • New feature
  • Documentation
  • Refactor
  • Other (please describe):

Testing

Screenshots (if applicable)

Additional Notes

Summary by CodeRabbit

Bug Fixes

  • Fixed keyboard event handling in the terminal to ensure application hotkeys are properly recognized and executed as intended.

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Jan 1, 2026

Caution

Review failed

The pull request is closed.

📝 Walkthrough

Walkthrough

The change modifies keyboard event handling in the terminal component. Instead of synthesizing and dispatching a new KeyboardEvent to the document for app hotkeys, the code now returns false to prevent xterm processing, allowing the original event to bubble naturally to document listeners.

Changes

Cohort / File(s) Summary
Terminal Keyboard Event Handling
apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/Terminal/helpers.ts
Refactored setupKeyboardHandler to suppress xterm processing for app hotkeys (return false) instead of dispatching synthetic KeyboardEvent; relies on native event bubbling for document listeners

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Possibly related PRs

  • superset-sh/superset#230: Adds Cmd+K onClear hotkey to terminal component, modifying the same keyboard handling logic in helpers.ts

Poem

🐰 A keypress bubbles, light and free,
No synthetic dance, just let it be,
The hotkey floats to listeners near,
xterm steps back—the path is clear! ✨

✨ Finishing touches
  • 📝 Generate docstrings

📜 Recent review details

Configuration used: defaults

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 895ca32 and d0b3c83.

📒 Files selected for processing (1)
  • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/Terminal/helpers.ts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@Kitenite Kitenite merged commit 9c630b3 into main Jan 1, 2026
4 of 5 checks passed
@Kitenite Kitenite deleted the fix-terminal-hotkeys branch January 1, 2026 06:00
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jan 1, 2026

🧹 Preview Cleanup Complete

The following preview resources have been cleaned up:

  • ⚠️ Neon database branch
  • ⚠️ Electric Fly.io app

Thank you for your contribution! 🎉

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.

1 participant