Ladybird: Add shortcut to "Close Current Tab"
This commit is contained in:
parent
850b713889
commit
8f16d37f00
Notes:
sideshowbarker
2024-07-17 05:02:42 +09:00
Author: https://github.com/Xexxa Commit: https://github.com/SerenityOS/serenity/commit/8f16d37f00 Pull-request: https://github.com/SerenityOS/serenity/pull/19033
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ BrowserWindow::BrowserWindow(Browser::CookieJar& cookie_jar, StringView webdrive
|
||||||
new_tab_action->setShortcuts(QKeySequence::keyBindings(QKeySequence::StandardKey::AddTab));
|
new_tab_action->setShortcuts(QKeySequence::keyBindings(QKeySequence::StandardKey::AddTab));
|
||||||
menu->addAction(new_tab_action);
|
menu->addAction(new_tab_action);
|
||||||
|
|
||||||
auto* close_current_tab_action = new QAction("Close Current Tab", this);
|
auto* close_current_tab_action = new QAction("&Close Current Tab", this);
|
||||||
close_current_tab_action->setIcon(QIcon(QString("%1/res/icons/16x16/close-tab.png").arg(s_serenity_resource_root.characters())));
|
close_current_tab_action->setIcon(QIcon(QString("%1/res/icons/16x16/close-tab.png").arg(s_serenity_resource_root.characters())));
|
||||||
close_current_tab_action->setShortcuts(QKeySequence::keyBindings(QKeySequence::StandardKey::Close));
|
close_current_tab_action->setShortcuts(QKeySequence::keyBindings(QKeySequence::StandardKey::Close));
|
||||||
menu->addAction(close_current_tab_action);
|
menu->addAction(close_current_tab_action);
|
||||||
|
|
Loading…
Add table
Reference in a new issue