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
CGoGN
CGoGN
Commits
ef3e3897
Commit
ef3e3897
authored
Nov 08, 2011
by
Sylvain Thery
Browse files
bug key event minuscule/majuscule
parent
b7089bd0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Utils/qtgl.cpp
View file @
ef3e3897
...
@@ -336,8 +336,8 @@ void GLWidget::keyPressEvent(QKeyEvent* event)
...
@@ -336,8 +336,8 @@ void GLWidget::keyPressEvent(QKeyEvent* event)
m_state_modifier
=
event
->
modifiers
();
m_state_modifier
=
event
->
modifiers
();
int
k
=
event
->
key
();
int
k
=
event
->
key
();
//
if ( (k >= 65) && (k <= 91) && !(event->modifiers() & Qt::ShiftModifier) )
if
(
(
k
>=
65
)
&&
(
k
<=
91
)
&&
!
(
event
->
modifiers
()
&
Qt
::
ShiftModifier
)
)
//
k += 32;
k
+=
32
;
if
(
m_cbs
)
if
(
m_cbs
)
m_cbs
->
cb_keyPress
(
k
);
m_cbs
->
cb_keyPress
(
k
);
...
...
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