mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 02:50:46 -06:00
Make it possible to jump between filters by pressing the tab key
Allow jumping between the filter input fields by pressing Tab and Shift+Tab. See issue #106.
This commit is contained in:
@@ -67,8 +67,8 @@ void ExtendedTableWidget::keyPressEvent(QKeyEvent* event)
|
||||
// Call a custom copy method when Ctrl-C is pressed
|
||||
if(event->matches(QKeySequence::Copy))
|
||||
copy();
|
||||
else
|
||||
QTableView::keyPressEvent(event);
|
||||
else if((event->key() != Qt::Key_Tab && event->key() != Qt::Key_Backtab) || hasFocus()) // This prevents the current selection from being changed when pressing
|
||||
QTableView::keyPressEvent(event); // tab to move to the next filter
|
||||
}
|
||||
|
||||
void ExtendedTableWidget::updateGeometries()
|
||||
|
||||
Reference in New Issue
Block a user