Backspace event is messed up - it was inserting weird characters in the editors.
Added check for proper keypress now. Will check real issue later.
This commit is contained in:
Ton Roosendaal
2012-10-29 08:59:47 +00:00
parent 74c60dc5bf
commit 23929c4c53

View File

@@ -1331,7 +1331,8 @@ static int wm_eventmatch(wmEvent *winevent, wmKeyMapItem *kmi)
/* the matching rules */
if (kmitype == KM_TEXTINPUT)
if (ISTEXTINPUT(winevent->type) && (winevent->ascii || winevent->utf8_buf[0])) return 1;
if (winevent->val == KM_PRESS)
if (ISTEXTINPUT(winevent->type) && (winevent->ascii || winevent->utf8_buf[0])) return 1;
if (kmitype != KM_ANY)
if (winevent->type != kmitype) return 0;