diff options
author | Joshua Leung <aligorith@gmail.com> | 2011-02-15 04:24:12 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2011-02-15 04:24:12 +0300 |
commit | b47bfd85e8364ae5f97f1318d0ced0cbe5755512 (patch) | |
tree | 7b326763385045e793d548553b4e0e272a80ee66 /source/blender/editors/include | |
parent | dab76a3ccfba7dd72543d671461b449e939ac1e2 (diff) |
UI Tweaks: Text field in Rename Markers popup now gets focus when the
popup appears, saving an extra click
I've separated out the "XXX"-'d event-adding-hack section from the
search-menu code into a separate API function (as recommended there).
This call is used to make sure that textboxes in popups can get
activated by default, to allow typing immediately.
Diffstat (limited to 'source/blender/editors/include')
-rw-r--r-- | source/blender/editors/include/UI_interface.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/include/UI_interface.h b/source/blender/editors/include/UI_interface.h index 76c9e765188..3e607b37067 100644 --- a/source/blender/editors/include/UI_interface.h +++ b/source/blender/editors/include/UI_interface.h @@ -548,6 +548,8 @@ void uiButSetCompleteFunc(uiBut *but, uiButCompleteFunc func, void *arg); void uiBlockSetDrawExtraFunc(uiBlock *block, void (*func)(const struct bContext *C, void *, void *, void *, struct rcti *rect), void *arg1, void *arg2); +void uiButSetFocusOnEnter (struct wmWindow *win, uiBut *but); + /* Autocomplete * * Tab complete helper functions, for use in uiButCompleteFunc callbacks. |