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
Marco Bubke
flatpak-qt-creator
Commits
b575e065
Commit
b575e065
authored
May 07, 2009
by
hjk
Browse files
fakevim: make Ctrl-c work in insert and ex mode
parent
cb7bc388
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/fakevim/fakevimhandler.cpp
View file @
b575e065
...
...
@@ -1475,7 +1475,7 @@ EventResult FakeVimHandler::Private::handleCommandMode(int key, int unmodified,
EventResult
FakeVimHandler
::
Private
::
handleInsertMode
(
int
key
,
int
,
const
QString
&
text
)
{
if
(
key
==
Key_Escape
||
key
==
27
)
{
if
(
key
==
Key_Escape
||
key
==
27
||
key
==
control
(
'c'
)
)
{
// start with '1', as one instance was already physically inserted
// while typing
QString
data
=
m_lastInsertion
;
...
...
@@ -1573,7 +1573,7 @@ EventResult FakeVimHandler::Private::handleMiniBufferModes(int key, int unmodifi
{
Q_UNUSED
(
text
)
if
(
key
==
Key_Escape
)
{
if
(
key
==
Key_Escape
||
key
==
control
(
'c'
)
)
{
m_commandBuffer
.
clear
();
enterCommandMode
();
updateMiniBuffer
();
...
...
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