Fixed so Shift-Tab functionality works properly.

This commit is contained in:
kilouco 2012-07-10 23:18:33 -03:00
parent d39ca7de10
commit aaf3351e87
1 changed files with 6 additions and 2 deletions

View File

@ -485,7 +485,11 @@ bool UITextEdit::onKeyPress(uchar keyCode, int keyboardModifiers, int autoRepeat
return true; return true;
} }
} else if(keyboardModifiers == Fw::KeyboardShiftModifier) { } else if(keyboardModifiers == Fw::KeyboardShiftModifier) {
if(keyCode == Fw::KeyRight && m_shiftNavigation) { // move cursor right if(keyCode == Fw::KeyTab && !m_shiftNavigation) {
if(UIWidgetPtr parent = getParent())
parent->focusPreviousChild(Fw::KeyboardFocusReason);
return true;
} else if(keyCode == Fw::KeyRight && m_shiftNavigation) { // move cursor right
moveCursor(true); moveCursor(true);
return true; return true;
} else if(keyCode == Fw::KeyLeft && m_shiftNavigation) { // move cursor left } else if(keyCode == Fw::KeyLeft && m_shiftNavigation) { // move cursor left