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
Tobias Hunger
qt-creator
Commits
01935a8a
Commit
01935a8a
authored
Mar 18, 2010
by
Martin Aumüller
Committed by
hjk
Mar 18, 2010
Browse files
fakevim: let ctrl-[ trigger the same action as the escape key
Merge-request: 131 Reviewed-by:
hjk
<
qtc-committer@nokia.com
>
parent
2ee91c8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/fakevim/fakevimhandler.cpp
View file @
01935a8a
...
...
@@ -1932,7 +1932,7 @@ EventResult FakeVimHandler::Private::handleCommandMode(int key, int unmodified,
}
else
if
(
key
==
control
(
Key_BracketRight
))
{
handleCommand
(
"tag"
);
}
else
if
(
key
==
Key_Escape
)
{
}
else
if
(
key
==
Key_Escape
||
key
==
control
(
Key_BracketLeft
)
)
{
if
(
isVisualMode
())
{
leaveVisualMode
();
}
else
if
(
m_submode
!=
NoSubMode
)
{
...
...
@@ -2134,7 +2134,7 @@ EventResult FakeVimHandler::Private::handleMiniBufferModes(int key, int unmodifi
{
Q_UNUSED
(
text
)
if
(
key
==
Key_Escape
||
key
==
control
(
'c'
))
{
if
(
key
==
Key_Escape
||
key
==
control
(
'c'
)
||
key
==
control
(
Key_BracketLeft
)
)
{
m_commandBuffer
.
clear
();
enterCommandMode
();
updateMiniBuffer
();
...
...
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