Skip to content

feat: add keyboard shortcuts for debugging#188

Open
aparnatonni wants to merge 1 commit intoc2siorg:mainfrom
aparnatonni:feat/keyboard-shortcuts-v2
Open

feat: add keyboard shortcuts for debugging#188
aparnatonni wants to merge 1 commit intoc2siorg:mainfrom
aparnatonni:feat/keyboard-shortcuts-v2

Conversation

@aparnatonni
Copy link
Copy Markdown

Description
Adds keyboard shortcuts to GDB-UI for faster debugging without using the mouse.

Shortcuts:

F5: Continue/Run
F10: Step Over
F11: Step Into
Shift+F11: Step Out
Ctrl+B: Toggle Breakpoint
Ctrl+K: Show Help
Changes:

Keyboard shortcuts utility and component
Integrated handlers in Debug page
Full test coverage
Feature documentation included

- Add keyboard shortcuts utility with 6 main shortcuts (F5, F10, F11, Shift+F11, Ctrl+B, Ctrl+K)
- Create KeyboardShortcutsHelp modal component
- Integrate keyboard event handling in Debug page
- Add comprehensive unit tests for shortcuts utility
- Add component tests for help modal
- Add detailed feature documentation

Shortcuts include:
- F5: Continue/Run program
- F10: Step over (next line)
- F11: Step into function
- Shift+F11: Step out of function
- Ctrl+B: Toggle breakpoint
- Ctrl+K: Show keyboard shortcuts help

The implementation follows VS Code convention and provides an accessible
modal that displays all available shortcuts. Keyboard events are properly
handled to avoid interference with text input fields.
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