Skip to content

Commit

Permalink
Stop showing application name upon Command+Space
Browse files Browse the repository at this point in the history
  • Loading branch information
probonopd committed Dec 30, 2022
1 parent 660acb5 commit d852fc0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/appmenuwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,7 @@ AppMenuWidget::AppMenuWidget(QWidget *parent)
KGlobalAccel::self()->setShortcut(searchAction, {QKeySequence("Ctrl+Space")}, KGlobalAccel::NoAutoloading); // Set global shortcut; this also becomes editable in kglobalshortcutsrc
connect(searchAction, &QAction::triggered, this, [searchAction, parent, this]() {
qobject_cast<MainWidget*>(parent)->triggerFocusMenu();
emit menuAboutToBeImported(); // Stop showing application name upon Command+Space; this gets stopShowingApplicationName called
});

searchAction->setShortcut(QKeySequence(KGlobalAccel::self()->globalShortcut(qApp->applicationName(), searchAction->objectName()).value(0))); // Show the shortcut on the menu item
Expand Down

0 comments on commit d852fc0

Please sign in to comment.