# HG changeset patch # User reimar # Date 1145135900 0 # Node ID 24003616a623ce97bbb5d6b6f7f50f4198cbb6cc # Parent 3a34a728fa1b7e6ec262e14d4fb72ce0eece446a 10l, fix broken if (X >= Y >= Z) comparison, probably stopped F-keys from working diff -r 3a34a728fa1b -r 24003616a623 osdep/getch2-win.c --- a/osdep/getch2-win.c Sat Apr 15 21:09:29 2006 +0000 +++ b/osdep/getch2-win.c Sat Apr 15 21:18:20 2006 +0000 @@ -93,7 +93,7 @@ continue; } /*check for function keys*/ - if(0x87 >= eventbuffer[i].Event.KeyEvent.wVirtualKeyCode >= 0x70) + if(0x87 >= eventbuffer[i].Event.KeyEvent.wVirtualKeyCode && eventbuffer[i].Event.KeyEvent.wVirtualKeyCode >= 0x70) return (KEY_F + 1 + eventbuffer[i].Event.KeyEvent.wVirtualKeyCode - 0x70); /*only characters should be remaining*/