From fa07068d0480cf40b1c02fc1a093554b9d3a0b4f Mon Sep 17 00:00:00 2001 From: "simon.kagstrom" Date: Fri, 23 Jan 2009 18:26:34 +0000 Subject: [PATCH] Handle empty spots more intelligently --- Src/VirtualKeyboard.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Src/VirtualKeyboard.cpp b/Src/VirtualKeyboard.cpp index 6c948f4..0b77ec0 100644 --- a/Src/VirtualKeyboard.cpp +++ b/Src/VirtualKeyboard.cpp @@ -124,7 +124,12 @@ void VirtualKeyboard::select_next(int dx, int dy) /* Skip the empty spots */ if (key.name == NULL) - this->select_next(dx, dy); + { + if (dy != 0) /* Look left */ + this->select_next(-1, 0); + else + this->select_next(dx, dy); + } } void VirtualKeyboard::toggle_shift()