mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-24 04:36:34 +01:00
Mac: Fix Preferences... action in application menu
Make sure the Configuration Information action won't be detected as "Preferences..." action. Also use native shortcut for fullscreen (Ctrl+Meta+F) Closes #1332
This commit is contained in:
parent
3a9f2f9e78
commit
1ff1969941
@ -629,12 +629,15 @@ void MainMenu::init()
|
||||
m_actions[QSL("Other/RestoreClosedTab")] = action;
|
||||
|
||||
#ifdef Q_OS_MAC
|
||||
m_actions[QSL("View/FullScreen")]->setShortcut(QKeySequence(QSL("F11")));
|
||||
m_actions[QSL("View/FullScreen")]->setShortcut(QKeySequence::FullScreen);
|
||||
|
||||
// Add standard actions to File Menu (as it won't be ever cleared) and Mac menubar should move them to "Application" menu
|
||||
m_menuFile->addAction(m_actions[QSL("Standard/About")]);
|
||||
m_menuFile->addAction(m_actions[QSL("Standard/Preferences")]);
|
||||
|
||||
// Prevent ConfigInfo action to be detected as "Preferences..." action in Mac menubar
|
||||
m_actions[QSL("Help/ConfigInfo")]->setMenuRole(QAction::NoRole);
|
||||
|
||||
// Create Dock menu
|
||||
QMenu* dockMenu = new QMenu(0);
|
||||
dockMenu->addAction(m_actions[QSL("File/NewTab")]);
|
||||
|
Loading…
Reference in New Issue
Block a user