mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-19 10:20:17 -06:00
Remove maleficent return in previous commit
This commit is contained in:
@@ -1404,9 +1404,6 @@ void MainWindow::keyPressEvent(QKeyEvent* event)
|
||||
{
|
||||
int tab = -1;
|
||||
|
||||
if (!(event->modifiers() & Qt::AltModifier))
|
||||
return;
|
||||
|
||||
switch (event->key())
|
||||
{
|
||||
case Qt::Key_1:
|
||||
@@ -1425,7 +1422,7 @@ void MainWindow::keyPressEvent(QKeyEvent* event)
|
||||
break;
|
||||
}
|
||||
|
||||
if (tab != -1)
|
||||
if (event->modifiers() & Qt::AltModifier && tab != -1)
|
||||
ui->mainTab->setCurrentIndex(tab);
|
||||
|
||||
QMainWindow::keyPressEvent(event);
|
||||
|
||||
Reference in New Issue
Block a user