From a35c7f28f7bb70cb86755d9df7a55e940dedc37f Mon Sep 17 00:00:00 2001 From: jcid Date: Sat, 24 Nov 2007 20:45:22 +0100 Subject: Fixed bindings for Space key in UI. --- src/ui.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/ui.cc') diff --git a/src/ui.cc b/src/ui.cc index 943a2409..a0f66c91 100644 --- a/src/ui.cc +++ b/src/ui.cc @@ -657,7 +657,8 @@ int UI::handle(int event) // Let FLTK pass these events to child widgets. if (event == KEY) { - if (event_key() == UpKey || event_key() == DownKey) + if (event_key() == UpKey || event_key() == DownKey || + event_key() == SpaceKey) return 0; } @@ -693,7 +694,7 @@ int UI::handle(int event) ret = 1; } - // Back and Forward shortcuts + // Back and Forward navigation shortcuts if ((!event_state(SHIFT) && event_key() == BackSpaceKey) || event_key() == ',') { a_UIcmd_back(user_data()); -- cgit v1.2.3