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
Marco Bubke
flatpak-qt-creator
Commits
355871a1
Commit
355871a1
authored
May 17, 2011
by
hjk
Browse files
fakevim: parse <Esc> from script files
parent
752066d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/fakevim/fakevimhandler.cpp
View file @
355871a1
...
...
@@ -505,6 +505,9 @@ void Inputs::parseFrom(const QString &str)
}
else
if
(
c1
==
'C'
&&
c2
==
'R'
&&
c3
==
'>'
)
{
append
(
Input
(
Key_Return
,
Qt
::
NoModifier
,
QString
(
QChar
(
13
))));
i
+=
3
;
}
else
if
(
c1
==
'E'
&&
c2
==
's'
&&
c3
==
'c'
&&
c4
==
'>'
)
{
append
(
Input
(
Key_Escape
,
Qt
::
NoModifier
,
QString
(
QChar
(
27
))));
i
+=
4
;
}
else
{
append
(
Input
(
QLatin1Char
(
c0
)));
}
...
...
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