File Browser: Improve usage of Enter-key to open files/directories
authorJulian Eisel <eiseljulian@gmail.com>
Thu, 9 Jul 2015 16:40:34 +0000 (18:40 +0200)
committerJulian Eisel <eiseljulian@gmail.com>
Thu, 9 Jul 2015 16:40:34 +0000 (18:40 +0200)
commitaeeb23efa28dc16e207b168866fe60806f8faa2d
treeb2aa8a442c4a44e937d9b28d435689319897fe39
parent26bd1a766a9c1e71eb55059c80adf959fe884bbc
File Browser: Improve usage of Enter-key to open files/directories

From a user-POV this makes following changes:
* Adds support for using the Enter-key to open directories
* Updates the upper text-buttons for file and directory on selection
* Last selected file/directory is opened now (in sync with upper text-buttons)
* Changes text in open button to "Open Directory" if a directory is selected

D1349, Reviewed by @mont29
source/blender/editors/space_file/file_draw.c
source/blender/editors/space_file/file_intern.h
source/blender/editors/space_file/file_ops.c
source/blender/editors/space_file/filesel.c