Manages keyboard navigation and shortcuts throughout the application.
More...
#include <KeyboardNavigationManager.hpp>
Manages keyboard navigation and shortcuts throughout the application.
Provides:
- Tab navigation between panels
- Arrow key navigation in tables
- Vim-like keybindings (hjkl)
- Quick access shortcuts
- Focus management
◆ KeyboardNavigationManager()
| ui::qt::utils::KeyboardNavigationManager::KeyboardNavigationManager |
( |
QWidget * |
mainWindow | ) |
|
|
explicit |
◆ areVimKeybindingsEnabled()
| bool ui::qt::utils::KeyboardNavigationManager::areVimKeybindingsEnabled |
( |
| ) |
const |
|
inline |
◆ handleKeyPress()
| bool ui::qt::utils::KeyboardNavigationManager::handleKeyPress |
( |
QKeyEvent * |
event | ) |
|
◆ handleStandardBindings()
| bool ui::qt::utils::KeyboardNavigationManager::handleStandardBindings |
( |
QKeyEvent * |
event | ) |
|
|
private |
◆ handleVimBindings()
| bool ui::qt::utils::KeyboardNavigationManager::handleVimBindings |
( |
QKeyEvent * |
event | ) |
|
|
private |
◆ jumpToFirst()
| void ui::qt::utils::KeyboardNavigationManager::jumpToFirst |
( |
| ) |
|
Jump to first row (Home or G+G)
◆ jumpToLast()
| void ui::qt::utils::KeyboardNavigationManager::jumpToLast |
( |
| ) |
|
◆ jumpToRow()
| void ui::qt::utils::KeyboardNavigationManager::jumpToRow |
( |
int |
row | ) |
|
Jump to row by number (: followed by number)
◆ navigateDown()
| void ui::qt::utils::KeyboardNavigationManager::navigateDown |
( |
| ) |
|
Navigate down in table (Down arrow or J)
◆ navigateLeft()
| void ui::qt::utils::KeyboardNavigationManager::navigateLeft |
( |
| ) |
|
Navigate left in table (Left arrow or H)
◆ navigateRight()
| void ui::qt::utils::KeyboardNavigationManager::navigateRight |
( |
| ) |
|
Navigate right in table (Right arrow or L)
◆ navigateToNextPanel()
| void ui::qt::utils::KeyboardNavigationManager::navigateToNextPanel |
( |
| ) |
|
Navigate to next panel (Ctrl+Tab)
◆ navigateToPreviousPanel()
| void ui::qt::utils::KeyboardNavigationManager::navigateToPreviousPanel |
( |
| ) |
|
Navigate to previous panel (Ctrl+Shift+Tab)
◆ navigateUp()
| void ui::qt::utils::KeyboardNavigationManager::navigateUp |
( |
| ) |
|
Navigate up in table (Up arrow or K)
◆ registerShortcut()
| void ui::qt::utils::KeyboardNavigationManager::registerShortcut |
( |
const QKeySequence & |
key, |
|
|
const QString & |
description, |
|
|
std::function< void()> |
handler |
|
) |
| |
Register a keyboard shortcut with a handler.
◆ setupDefaultShortcuts()
| void ui::qt::utils::KeyboardNavigationManager::setupDefaultShortcuts |
( |
| ) |
|
|
private |
◆ setVimKeybindingsEnabled()
| void ui::qt::utils::KeyboardNavigationManager::setVimKeybindingsEnabled |
( |
bool |
enabled | ) |
|
|
inline |
Enable/disable Vim-like keybindings.
◆ shortcuts()
| const std::map< QString, QString > & ui::qt::utils::KeyboardNavigationManager::shortcuts |
( |
| ) |
const |
|
inline |
Get all registered shortcuts.
◆ m_mainWindow
| QWidget* ui::qt::utils::KeyboardNavigationManager::m_mainWindow |
|
private |
◆ m_shortcutDescriptions
| std::map<QString, QString> ui::qt::utils::KeyboardNavigationManager::m_shortcutDescriptions |
|
private |
◆ m_shortcuts
| std::map<int, std::function<void()> > ui::qt::utils::KeyboardNavigationManager::m_shortcuts |
|
private |
◆ m_vimGGPressed
| bool ui::qt::utils::KeyboardNavigationManager::m_vimGGPressed {false} |
|
private |
◆ m_vimKeybindingsEnabled
| bool ui::qt::utils::KeyboardNavigationManager::m_vimKeybindingsEnabled {false} |
|
private |
The documentation for this class was generated from the following files: