View Single Post
Old 10-14-2011, 09:46 AM   #223
-=*Raz0r*=-
Rookie
 
-=*Raz0r*=-'s Avatar
 
Join Date: Oct 2006
Location: Australia
Posts: 243
ITEM_TYPE_EDITFIELD elements will leave insert/overstrike mode on in various occasions.

ui_shared.c -> Item_TextField_HandleKey

Replace
Code:
		if ( key == A_ENTER || key == A_KP_ENTER || key == A_ESCAPE)  {
			return qfalse;
		}
With
Code:
		if ( key == A_ENTER || key == A_KP_ENTER || key == A_ESCAPE || (key == A_MOUSE1 && !Rect_ContainsPoint(&item->window.rect, DC->cursorx, DC->cursory) ))  {
			DC->setOverstrikeMode( qfalse );
			return qfalse;
		}

-=*Raz0r*=- is offline   you may: quote & reply,