02-04-2005, Saturday-11:59:07
Zitat:Original von GotthardlokDa kann prissi nix dafür, die Tasten senden unterschiedliche Keycodes (xev zeigt die an, bei mit ist das linke + die 35 und das Ziffernnummern + die 86 als Beispiel) für ein Programm ist das also so wie der Unterschied zwischen A und B.
Was ist das für eine komische Programmierung?
Daher muß jede Taste einzeln nachgetragen werden:
Ziffernblock:
KeyRelease event, serial 28, synthetic NO, window 0x1c00001,
root 0xd6, subw 0x0, time 2447949, (40,-67), root

state 0x0, keycode 86 (keysym 0xffab, KP_Add), same_screen YES,
XLookupString gives 1 bytes: "+"
"normal":
KeyRelease event, serial 28, synthetic NO, window 0x1c00001,
root 0xd6, subw 0x0, time 2449840, (40,-67), root

state 0x0, keycode 35 (keysym 0x2b, plus), same_screen YES,
XLookupString gives 1 bytes: "+"