Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KMail
Commits
2226633b
Commit
2226633b
authored
Oct 13, 2021
by
Laurent Montel
😁
Browse files
Fix shortcut
parent
f16ba683
Pipeline
#88288
passed with stage
in 24 minutes and 26 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/kmmainwidget.cpp
View file @
2226633b
...
...
@@ -161,7 +161,6 @@
#include
<QList>
#include
<QMenu>
#include
<QProcess>
#include
<QShortcut>
#include
<QSplitter>
#include
<QStatusBar>
#include
<QVBoxLayout>
...
...
@@ -3515,14 +3514,14 @@ void KMMainWidget::setupActions()
connect
(
mRestartAccountSettings
,
&
QAction
::
triggered
,
this
,
&
KMMainWidget
::
slotRestartAccount
);
{
auto
act
=
new
QAction
(
i18n
(
"Previous Selected Folder"
),
this
);
// TODO fix me i18n
actionCollection
()
->
setDefaultShortcut
(
act
,
QKeySequence
(
Qt
::
ALT
|
Qt
::
Key_Tab
));
actionCollection
()
->
setDefaultShortcut
(
act
,
QKeySequence
(
Qt
::
CTRL
|
Qt
::
Key_Tab
));
actionCollection
()
->
addAction
(
QStringLiteral
(
"previous_folder"
),
act
);
connect
(
act
,
&
QAction
::
triggered
,
mHistorySwitchFolderManager
,
&
HistorySwitchFolderManager
::
undo
);
act
=
new
QAction
(
i18n
(
"Next Selected Folder"
),
this
);
// TODO fix me i18n
actionCollection
()
->
addAction
(
QStringLiteral
(
"next_folder"
),
act
);
actionCollection
()
->
setDefaultShortcut
(
act
,
QKeySequence
(
Qt
::
AL
T
|
Qt
::
Key_Tab
|
Qt
::
CTRL
));
actionCollection
()
->
setDefaultShortcut
(
act
,
QKeySequence
(
Qt
::
SHIF
T
|
Qt
::
Key_Tab
|
Qt
::
CTRL
));
connect
(
act
,
&
QAction
::
triggered
,
mHistorySwitchFolderManager
,
&
HistorySwitchFolderManager
::
redo
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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