forked from bartvdbraak/blender
2.5 file browser
* small tweak for tab completion of directory: make TEX button interactive again Note1: only TAB key triggers update (see ui_do_but_textedit, line 1599)
This commit is contained in:
parent
4ba8397ab0
commit
e3f6770bd3
@ -1595,7 +1595,7 @@ static void ui_do_but_textedit(bContext *C, uiBlock *block, uiBut *but, uiHandle
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(changed) {
|
if(changed) {
|
||||||
/* never update while typing for now */
|
/* only update when typing for TAB key */
|
||||||
if(update && data->interactive) ui_apply_button(C, block, but, data, 1);
|
if(update && data->interactive) ui_apply_button(C, block, but, data, 1);
|
||||||
else ui_check_but(but);
|
else ui_check_but(but);
|
||||||
|
|
||||||
@ -3636,7 +3636,7 @@ static void button_activate_init(bContext *C, ARegion *ar, uiBut *but, uiButtonA
|
|||||||
data= MEM_callocN(sizeof(uiHandleButtonData), "uiHandleButtonData");
|
data= MEM_callocN(sizeof(uiHandleButtonData), "uiHandleButtonData");
|
||||||
data->window= CTX_wm_window(C);
|
data->window= CTX_wm_window(C);
|
||||||
data->region= ar;
|
data->region= ar;
|
||||||
if( ELEM3(but->type, TEX, BUT_CURVE, SEARCH_MENU) ); // XXX curve is temp
|
if( ELEM(but->type, BUT_CURVE, SEARCH_MENU) ); // XXX curve is temp
|
||||||
else data->interactive= 1;
|
else data->interactive= 1;
|
||||||
|
|
||||||
data->state = BUTTON_STATE_INIT;
|
data->state = BUTTON_STATE_INIT;
|
||||||
|
Loading…
Reference in New Issue
Block a user