Skip to content

Commit

Permalink
Fixed|LineEditWidget: Typing a ~ character in the console
Browse files Browse the repository at this point in the history
When focused, LineEditWidget doesn't eat Shift any more, so that
the event goes down to the bindings system and it can allow the
"shift up" condition to work correctly for the 'taskbar' binding.
  • Loading branch information
skyjake committed Sep 29, 2013
1 parent 9cab676 commit 330a14d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion doomsday/client/src/ui/widgets/lineeditwidget.cpp
Expand Up @@ -395,8 +395,15 @@ bool LineEditWidget::handleEvent(Event const &event)
{
KeyEvent const &key = event.as<KeyEvent>();

if(key.qtKey() == Qt::Key_Shift)
{
// Shift is not eaten so that Shift-Tilde can produce ~.
// If we ate Shift, the bindings system would not realize it is down.
return false;
}

if(key.qtKey() == Qt::Key_Control || key.qtKey() == Qt::Key_Alt ||
key.qtKey() == Qt::Key_Meta || key.qtKey() == Qt::Key_Shift)
key.qtKey() == Qt::Key_Meta)
{
// Modifier keys alone will be eaten when focused.
return true;
Expand Down

0 comments on commit 330a14d

Please sign in to comment.