Just got bitten by this one.
This is in a dDropDownList, the code is :
def onKeyChar(self, evt):
print evt.EventData
First keyed <F4> then keyed "s", the results where :
{'unicodeChar': 115, 'mousePosition': (-286, 126), 'rawKeyFlags':
4063233, 'timestamp': time.struct_time(tm_year=2013, tm_mon=12,
tm_mday=14, tm_hour=14, tm_min=17, tm_sec=14, tm_wday=5, tm_yday=348,
tm_isdst=0), 'keyChar': 's', 'controlDown': False, 'rawKeyCode': 115,
'keyCode': 343, 'unicodeKey': 115, 'shiftDown': False, 'commandDown':
False, 'altDown': False, 'id': -303, 'hasModifiers': False, 'metaDown':
False}
{'unicodeChar': 115, 'mousePosition': (-286, 126), 'rawKeyFlags':
2031617, 'timestamp': time.struct_time(tm_year=2013, tm_mon=12,
tm_mday=14, tm_hour=14, tm_min=17, tm_sec=22, tm_wday=5, tm_yday=348,
tm_isdst=0), 'keyChar': 's', 'controlDown': False, 'rawKeyCode': 115,
'keyCode': 115, 'unicodeKey': 115, 'shiftDown': False, 'commandDown':
False, 'altDown': False, 'id': -303, 'hasModifiers': False, 'metaDown':
False}
Notice that both keys will get a "KeyChar" value of 's'. In Linux when
keying <F4> I'd get a "KeyChar" value of None (as far as I can remember)
which is reasonable. Here both get an 's' and a "unicodeChar",
'rawKeyCode', and 'unicodeKey' of 115, while the 'keyCode' of F4 is 343
which is what I get in linux.
_______________________________________________
Post Messages to: Dabo-users@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/52ac94b4.8090...@gmail.com