From db6d5834361a2e660301e9511058e370fb884cc5 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Fri, 20 Nov 2015 20:36:36 +0100 Subject: Move text cursor on key down instead of key up; feels more responsive that way. --- plugingui/lineedit.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugingui') diff --git a/plugingui/lineedit.cc b/plugingui/lineedit.cc index 1a9b8c8..2df40ff 100644 --- a/plugingui/lineedit.cc +++ b/plugingui/lineedit.cc @@ -120,7 +120,7 @@ void LineEdit::keyEvent(KeyEvent *keyEvent) bool change = false; - if(keyEvent->direction == Direction::up) + if(keyEvent->direction == Direction::down) { switch(keyEvent->keycode) { case Key::left: -- cgit v1.2.3