curses.c (a6e0344fa0e09413324835ae122c4cadd7890231) | curses.c (abb4f2c9655503f14dc55064f29c4f59b07e96ff) |
---|---|
1/* 2 * QEMU curses/ncurses display driver 3 * 4 * Copyright (c) 2005 Andrzej Zaborowski <balrog@zabor.org> 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 7 * of this software and associated documentation files (the "Software"), to deal 8 * in the Software without restriction, including without limitation the rights --- 257 unchanged lines hidden (view full) --- 266 keysym = chr + '@'; 267 if (keysym >= 'A' && keysym <= 'Z') 268 keysym += 'a' - 'A'; 269 keysym |= KEYSYM_CNTRL; 270 } else 271 keysym = chr; 272 } 273 | 1/* 2 * QEMU curses/ncurses display driver 3 * 4 * Copyright (c) 2005 Andrzej Zaborowski <balrog@zabor.org> 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 7 * of this software and associated documentation files (the "Software"), to deal 8 * in the Software without restriction, including without limitation the rights --- 257 unchanged lines hidden (view full) --- 266 keysym = chr + '@'; 267 if (keysym >= 'A' && keysym <= 'Z') 268 keysym += 'a' - 'A'; 269 keysym |= KEYSYM_CNTRL; 270 } else 271 keysym = chr; 272 } 273 |
274 keycode = keysym2scancode(kbd_layout, keysym & KEYSYM_MASK); | 274 keycode = keysym2scancode(kbd_layout, keysym & KEYSYM_MASK, 275 false, false, false); |
275 if (keycode == 0) 276 continue; 277 278 keycode |= (keysym & ~KEYSYM_MASK) >> 16; 279 keycode |= keycode_alt; 280 } 281 282 if (keycode == -1) --- 175 unchanged lines hidden --- | 276 if (keycode == 0) 277 continue; 278 279 keycode |= (keysym & ~KEYSYM_MASK) >> 16; 280 keycode |= keycode_alt; 281 } 282 283 if (keycode == -1) --- 175 unchanged lines hidden --- |