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
1d715abf
Commit
1d715abf
authored
Mar 18, 2010
by
Martin Aumüller
Committed by
hjk
Mar 18, 2010
Browse files
fakevim: don't try to lower-case keys which have no case
Merge-request: 131 Reviewed-by:
hjk
<
qtc-committer@nokia.com
>
parent
215ad057
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/fakevim/fakevimhandler.cpp
View file @
1d715abf
...
...
@@ -665,8 +665,9 @@ EventResult FakeVimHandler::Private::handleEvent(QKeyEvent *ev)
moveRight
();
if
((
mods
&
Qt
::
ControlModifier
)
!=
0
)
{
if
(
key
>=
Key_A
&&
key
<=
Key_Z
)
key
+=
32
;
// make it lower case
key
+=
256
;
key
+=
32
;
// make it lower case
}
else
if
(
key
>=
Key_A
&&
key
<=
Key_Z
&&
(
mods
&
Qt
::
ShiftModifier
)
==
0
)
{
key
+=
32
;
}
...
...
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