diff options
author | Nathan Craddock <nzcraddock@gmail.com> | 2021-07-12 19:45:24 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2021-07-15 17:12:36 +0300 |
commit | 8edcb3af963113e37490288876419e8f50d4f1e8 (patch) | |
tree | 7c84fdd1921698036fc53dce12568c93d2e8191e /source/blender/editors/interface/interface_context_menu.c | |
parent | ae1dc8f5f98d045b11312401d6f93d0eae15ddc5 (diff) |
UI: Support left-right arrow key walk navigation in UI lists
Add improved arrow key walk navigation in grid layout UI List templates.
Pressing up or down walks the active item to the adjacent row in that
direction, while left and right walk through the items along the columns
wrapping at the rows.
Note from Julian:
In combination with the following commit, this has the important
limitation that the list's custom activate operator won't be called when
"walking over" an item that is scrolled out of the list. That is because
we don't actually create any buttons for those that could be used for
the handling logic. For our purposes of the pose libraries that should
be fine since the asset view list is always made big enough to display
all items. Solving this might be difficult, we don't properly support
nesting boxes with proper scrolling in regular layouts. It's all just
hacked a bit for UI-lists to work. Overlaps quite a bit with T86149.
Differential Revision: https://developer.blender.org/D11063
Diffstat (limited to 'source/blender/editors/interface/interface_context_menu.c')
0 files changed, 0 insertions, 0 deletions