Blender Git Loki
Git Commits -> Revision 939948c
Revision 939948c by Julian Eisel (master) June 11, 2015, 15:20 (GMT) |
File Browser Arrow Keys Navigation Adds support for selecting/deselecting files in File Browser using the arrow keys. All directions (up, down, left, right) are possible. When to Select, When to Deselect? Standard behaviour is selecting, however if we move into a block of already selected files (meaning 2+ files are selected) we start deselecting Possible Selection Methods Simple selection (arrow-key): All other files are deselected Expand selection (Shift+arrow key): Add to/remove from existing selection ill-Expand selection (Ctrl+Shift+arrow key): Add to/remove from existing selection and fill everything in-between From which file do we start navigating? From each available selection method (Mouse-, Walk-, All-, Border Select), we use the last selected file. If there's no selection at all we use the first (down/right arrow) or last (up/left arrow) file. (Ideally, the view would automatically be set to the new selection, but this behaviour overlaps with an other patch I've been working on, so prefer to do that separately) (Also tweaks color for highlighted file for better feedback) D1297, Review done by @campbellbarton, thx a lot :) |
Commit Details:
Full Hash: 939948c23384119dbcc7d94614cabf76dde22391
Parent Commit: 356afe0
Lines Changed: +427, -34
1 Added Path:
/source/blender/editors/space_file/file_utils.c (+46, -0) (View)
9 Modified Paths:
/source/blender/blenlib/BLI_rect.h (+4, -0) (Diff)
/source/blender/blenlib/intern/rct.c (+32, -0) (Diff)
/source/blender/editors/space_file/CMakeLists.txt (+1, -0) (Diff)
/source/blender/editors/space_file/filesel.c (+1, -1) (Diff)
/source/blender/editors/space_file/file_draw.c (+2, -2) (Diff)
/source/blender/editors/space_file/file_intern.h (+12, -0) (Diff)
/source/blender/editors/space_file/file_ops.c (+281, -28) (Diff)
/source/blender/editors/space_file/space_file.c (+46, -2) (Diff)
/source/blender/makesdna/DNA_space_types.h (+2, -1) (Diff)
/source/blender/blenlib/intern/rct.c (+32, -0) (Diff)
/source/blender/editors/space_file/CMakeLists.txt (+1, -0) (Diff)
/source/blender/editors/space_file/filesel.c (+1, -1) (Diff)
/source/blender/editors/space_file/file_draw.c (+2, -2) (Diff)
/source/blender/editors/space_file/file_intern.h (+12, -0) (Diff)
/source/blender/editors/space_file/file_ops.c (+281, -28) (Diff)
/source/blender/editors/space_file/space_file.c (+46, -2) (Diff)
/source/blender/makesdna/DNA_space_types.h (+2, -1) (Diff)