From 08e96c97f7524190c40a1c5482076874f394a6a7 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 9 Mar 2013 20:12:23 +0100 Subject: Make knob controllable using the arrow keys. --- plugingui/eventhandler.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugingui/eventhandler.cc') diff --git a/plugingui/eventhandler.cc b/plugingui/eventhandler.cc index 57718c2..b971b15 100644 --- a/plugingui/eventhandler.cc +++ b/plugingui/eventhandler.cc @@ -498,9 +498,9 @@ void GUI::EventHandler::processEvents(Window *window) if(be->direction == 1) { if(w->catchMouse()) window->setButtonDownFocus(w); - } else { - if(w->isFocusable()) window->setKeyboardFocus(w); } + + if(w->isFocusable()) window->setKeyboardFocus(w); } } break; -- cgit v1.2.3