diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-04-06 12:22:39 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-04-06 12:22:39 +0400 |
commit | 129f4012283e92a806b48777fc173102887cf004 (patch) | |
tree | b3b17e40bd0bd3873929bd5b2d9b1066a320df25 /source/blender | |
parent | 6002927521004bfb13475df8bf4d6c1ee05378fb (diff) |
ctrl+a select all in button field
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/bmesh/operators/bmo_poke.c | 3 | ||||
-rw-r--r-- | source/blender/editors/interface/interface_handlers.c | 11 |
2 files changed, 11 insertions, 3 deletions
diff --git a/source/blender/bmesh/operators/bmo_poke.c b/source/blender/bmesh/operators/bmo_poke.c index 122c14021c0..7105210da04 100644 --- a/source/blender/bmesh/operators/bmo_poke.c +++ b/source/blender/bmesh/operators/bmo_poke.c @@ -28,10 +28,7 @@ * Splits a face into a triangle fan. */ -#include "MEM_guardedalloc.h" - #include "BLI_math.h" -#include "BLI_array.h" #include "bmesh.h" diff --git a/source/blender/editors/interface/interface_handlers.c b/source/blender/editors/interface/interface_handlers.c index c40d91378b1..16f3cb9c7c2 100644 --- a/source/blender/editors/interface/interface_handlers.c +++ b/source/blender/editors/interface/interface_handlers.c @@ -2233,6 +2233,17 @@ static void ui_do_but_textedit(bContext *C, uiBlock *block, uiBut *but, uiHandle retval = WM_UI_HANDLER_BREAK; break; + case AKEY: + /* Ctrl + A: Select all */ + if (event->ctrl && !(event->alt || event->shift || event->oskey)) { + ui_textedit_move(but, data, STRCUR_DIR_PREV, + false, STRCUR_JUMP_ALL); + ui_textedit_move(but, data, STRCUR_DIR_NEXT, + true, STRCUR_JUMP_ALL); + retval = WM_UI_HANDLER_BREAK; + } + break; + case TABKEY: /* there is a key conflict here, we can't tab with autocomplete */ if (but->autocomplete_func || data->searchbox) { |