mirror of
https://github.com/edubart/otclient.git
synced 2025-04-30 09:39:21 +02:00
Fixed so Shift-Tab functionality works properly.
This commit is contained in:
parent
d39ca7de10
commit
aaf3351e87
@ -485,7 +485,11 @@ bool UITextEdit::onKeyPress(uchar keyCode, int keyboardModifiers, int autoRepeat
|
||||
return true;
|
||||
}
|
||||
} 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);
|
||||
return true;
|
||||
} else if(keyCode == Fw::KeyLeft && m_shiftNavigation) { // move cursor left
|
||||
|
Loading…
x
Reference in New Issue
Block a user