Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Kate
Commits
07e1d894
Commit
07e1d894
authored
Feb 14, 2022
by
Waqar Ahmed
Browse files
Use KActionCollection::setDefaultShortcut
parent
6ad822ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
kate/kateviewmanager.cpp
View file @
07e1d894
...
...
@@ -195,7 +195,7 @@ void KateViewManager::setupActions()
a
=
m_mainWindow
->
actionCollection
()
->
addAction
(
QStringLiteral
(
"viewspace_focus_nav_bar"
));
a
->
setText
(
i18n
(
"Focus Navigation Bar"
));
a
->
setToolTip
(
i18n
(
"Focus the navigation bar"
));
a
->
se
tShortcut
(
Qt
::
CTRL
|
Qt
::
SHIFT
|
Qt
::
Key_Period
);
m_mainWindow
->
actionCollection
()
->
setDefaul
tShortcut
(
a
,
Qt
::
CTRL
|
Qt
::
SHIFT
|
Qt
::
Key_Period
);
connect
(
a
,
&
QAction
::
triggered
,
this
,
[
this
]
{
activeViewSpace
()
->
focusNavigationBar
();
});
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment