Skip to content

Commit

Permalink
Qt: Use builtin Find and Quit key sequences
Browse files Browse the repository at this point in the history
  • Loading branch information
sonic2kk authored and leoetlino committed Mar 15, 2020
1 parent 15acce8 commit b82f547
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Source/Core/DolphinQt/MenuBar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,7 @@ void MenuBar::AddDVDBackupMenu(QMenu* file_menu)
void MenuBar::AddFileMenu()
{
QMenu* file_menu = addMenu(tr("&File"));
m_open_action = file_menu->addAction(tr("&Open..."), this, &MenuBar::Open,
QKeySequence(Qt::CTRL + Qt::Key_O));
m_open_action = file_menu->addAction(tr("&Open..."), this, &MenuBar::Open, QKeySequence::Open);

file_menu->addSeparator();

Expand All @@ -211,8 +210,8 @@ void MenuBar::AddFileMenu()

file_menu->addSeparator();

m_exit_action =
file_menu->addAction(tr("E&xit"), this, &MenuBar::Exit, QKeySequence(Qt::ALT + Qt::Key_F4));
m_exit_action = file_menu->addAction(tr("E&xit"), this, &MenuBar::Exit);
m_exit_action->setShortcuts({QKeySequence::Quit, QKeySequence(Qt::ALT + Qt::Key_F4)});
}

void MenuBar::AddToolsMenu()
Expand Down Expand Up @@ -488,8 +487,7 @@ void MenuBar::AddViewMenu()
view_menu->addSeparator();
view_menu->addAction(tr("Purge Game List Cache"), this, &MenuBar::PurgeGameListCache);
view_menu->addSeparator();
view_menu->addAction(tr("Search"), this, &MenuBar::ShowSearch,
QKeySequence(Qt::CTRL + Qt::Key_F));
view_menu->addAction(tr("Search"), this, &MenuBar::ShowSearch, QKeySequence::Find);
}

void MenuBar::AddOptionsMenu()
Expand Down

0 comments on commit b82f547

Please sign in to comment.