Applied Daniel Fairhead's patch for a correct working DELKEY in textinput buttons.
(thanks!) Added a 'void' somewhere to silence a compiler warning. (Windows only) Moved the flip fullscreen button in the topheader a little to the right, since the questionmark button mysteriously disappeared.
This commit is contained in:
@@ -1183,16 +1183,14 @@ static int ui_do_but_TEX(uiBut *but)
|
||||
else if(dev==MOUSEY) val= 0;
|
||||
|
||||
if(ascii) {
|
||||
if( ascii>31 && ascii<127) {
|
||||
if(len < but->max) {
|
||||
for(x= but->max; x>but->pos; x--)
|
||||
str[x]= str[x-1];
|
||||
str[but->pos]= ascii;
|
||||
but->pos++;
|
||||
len++;
|
||||
str[len]= '\0';
|
||||
dodraw= 1;
|
||||
}
|
||||
if(len < but->max) {
|
||||
for(x= but->max; x>but->pos; x--)
|
||||
str[x]= str[x-1];
|
||||
str[but->pos]= ascii;
|
||||
but->pos++;
|
||||
len++;
|
||||
str[len]= '\0';
|
||||
dodraw= 1;
|
||||
}
|
||||
}
|
||||
else if(val) {
|
||||
@@ -1234,7 +1232,8 @@ static int ui_do_but_TEX(uiBut *but)
|
||||
str[--len]='\0';
|
||||
dodraw= 1;
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
case BACKSPACEKEY:
|
||||
if(len!=0) {
|
||||
if(get_qual() & LR_SHIFTKEY) {
|
||||
|
||||
Reference in New Issue
Block a user