Keymap: use Shift-Tab to cycle backwards over edit-buttons
All modifiers were being checked, a hang-over from 2.4x where this checked the modifier flag was non-zero.
This commit is contained in:
parent
d975e19583
commit
f2bf5acd58
|
@ -3735,13 +3735,14 @@ static void ui_do_but_textedit(
|
|||
button_activate_state(C, but, BUTTON_STATE_EXIT);
|
||||
}
|
||||
}
|
||||
/* the hotkey here is not well defined, was G.qual so we check all */
|
||||
else if (IS_EVENT_MOD(event, shift, ctrl, alt, oskey)) {
|
||||
else if (!IS_EVENT_MOD(event, ctrl, alt, oskey)) {
|
||||
/* Use standard keys for cycling through buttons Tab, Shift-Tab to reverse. */
|
||||
if (event->shift) {
|
||||
ui_textedit_prev_but(block, but, data);
|
||||
button_activate_state(C, but, BUTTON_STATE_EXIT);
|
||||
}
|
||||
else {
|
||||
ui_textedit_next_but(block, but, data);
|
||||
}
|
||||
button_activate_state(C, but, BUTTON_STATE_EXIT);
|
||||
}
|
||||
retval = WM_UI_HANDLER_BREAK;
|
||||
|
|
Loading…
Reference in New Issue