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
58095bdd
Commit
58095bdd
authored
Aug 06, 2022
by
Pablo Rauzy
Committed by
Christoph Cullmann
Aug 14, 2022
Browse files
Update default shortcut to avoid using Emacs-style keybindings
parent
ccfba2e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
addons/keyboardmacros/keyboardmacrosplugin.cpp
View file @
58095bdd
...
...
@@ -432,14 +432,14 @@ void KeyboardMacrosPlugin::slotDeleteNamed(const QString &name)
// END
// BEGIN Plugin view to add our actions to the
gui
// BEGIN Plugin view to add our actions to the
GUI
KeyboardMacrosPluginView
::
KeyboardMacrosPluginView
(
KeyboardMacrosPlugin
*
plugin
,
KTextEditor
::
MainWindow
*
mainwindow
)
:
QObject
(
mainwindow
)
,
m_plugin
(
plugin
)
,
m_mainWindow
(
mainwindow
)
{
// setup
xml gui
// setup
XML GUI
KXMLGUIClient
::
setComponentName
(
QStringLiteral
(
"keyboardmacros"
),
i18n
(
"Keyboard Macros"
));
setXMLFile
(
QStringLiteral
(
"ui.rc"
));
...
...
@@ -460,7 +460,7 @@ KeyboardMacrosPluginView::KeyboardMacrosPluginView(KeyboardMacrosPlugin *plugin,
cancel
->
setText
(
i18n
(
"&Cancel Macro Recording"
));
cancel
->
setIcon
(
QIcon
::
fromTheme
(
QStringLiteral
(
"process-stop"
)));
cancel
->
setToolTip
(
i18n
(
"Cancel ongoing recording (and keep the previous macro as the current one)."
));
actionCollection
()
->
setDefaultShortcut
(
cancel
,
QKeySequence
(
QStringLiteral
(
"Alt+Shift+K
, C
"
),
QKeySequence
::
PortableText
));
actionCollection
()
->
setDefaultShortcut
(
cancel
,
QKeySequence
(
QStringLiteral
(
"
Ctrl+
Alt+Shift+K"
),
QKeySequence
::
PortableText
));
cancel
->
setEnabled
(
false
);
connect
(
cancel
,
&
QAction
::
triggered
,
plugin
,
&
KeyboardMacrosPlugin
::
slotCancel
);
plugin
->
m_cancelAction
=
cancel
;
...
...
@@ -480,7 +480,7 @@ KeyboardMacrosPluginView::KeyboardMacrosPluginView(KeyboardMacrosPlugin *plugin,
save
->
setText
(
i18n
(
"&Save Current Macro"
));
save
->
setIcon
(
QIcon
::
fromTheme
(
QStringLiteral
(
"media-playlist-append"
)));
save
->
setToolTip
(
i18n
(
"Give a name to the current macro and persistently save it."
));
actionCollection
()
->
setDefaultShortcut
(
save
,
QKeySequence
(
QStringLiteral
(
"Alt+Shift+K
, S
"
),
QKeySequence
::
PortableText
));
actionCollection
()
->
setDefaultShortcut
(
save
,
QKeySequence
(
QStringLiteral
(
"Alt+Shift+K"
),
QKeySequence
::
PortableText
));
save
->
setEnabled
(
false
);
connect
(
save
,
&
QAction
::
triggered
,
plugin
,
&
KeyboardMacrosPlugin
::
slotSave
);
plugin
->
m_saveAction
=
save
;
...
...
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