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
Utilities
Konsole
Commits
1fdeb167
Commit
1fdeb167
authored
Jun 28, 2007
by
Robert Knight
Browse files
Add KDE 3's Shift+Insert paste shortcut as an alternative to the current Ctrl+Shift+V.
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=681418
parent
65ee1b6c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/SessionController.cpp
View file @
1fdeb167
...
...
@@ -399,12 +399,18 @@ void SessionController::setupActions()
action
->
setText
(
i18n
(
"&Copy"
)
);
action
->
setShortcut
(
QKeySequence
(
Qt
::
CTRL
+
Qt
::
SHIFT
+
Qt
::
Key_C
)
);
connect
(
action
,
SIGNAL
(
triggered
())
,
this
,
SLOT
(
copy
())
);
action
=
collection
->
addAction
(
"paste"
);
action
->
setIcon
(
KIcon
(
"edit-paste"
)
);
action
->
setText
(
i18n
(
"&Paste"
)
);
action
->
setShortcut
(
QKeySequence
(
Qt
::
CTRL
+
Qt
::
SHIFT
+
Qt
::
Key_V
)
);
connect
(
action
,
SIGNAL
(
triggered
())
,
this
,
SLOT
(
paste
())
);
KAction
*
pasteAction
=
new
KAction
(
i18n
(
"&Paste"
)
,
this
);
pasteAction
->
setIcon
(
KIcon
(
"edit-paste"
)
);
KShortcut
pasteShortcut
=
pasteAction
->
shortcut
();
pasteShortcut
.
setPrimary
(
QKeySequence
(
Qt
::
CTRL
+
Qt
::
SHIFT
+
Qt
::
Key_V
)
);
pasteShortcut
.
setAlternate
(
QKeySequence
(
Qt
::
SHIFT
+
Qt
::
Key_Insert
)
);
pasteAction
->
setShortcut
(
pasteShortcut
);
collection
->
addAction
(
"paste"
,
pasteAction
);
connect
(
pasteAction
,
SIGNAL
(
triggered
())
,
this
,
SLOT
(
paste
())
);
// Rename Session
action
=
collection
->
addAction
(
"rename-session"
);
...
...
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