gui-win32: define Kdel in keyboard.h (thanks hiro)

This commit is contained in:
David du Colombier 2015-11-20 09:44:14 +01:00
parent 49233b059e
commit 965baf3dce
2 changed files with 2 additions and 2 deletions

View File

@ -414,8 +414,7 @@ WindowProc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam)
kbdputc(kbdq, Kins); kbdputc(kbdq, Kins);
break; break;
case VK_DELETE: case VK_DELETE:
// kbdputc(kbdq, Kdel); kbdputc(kbdq, Kdel);
kbdputc(kbdq, 0x7f); // should have Kdel in keyboard.h
break; break;
case VK_UP: case VK_UP:
kbdputc(kbdq, Kup); kbdputc(kbdq, Kup);

View File

@ -23,6 +23,7 @@ extern void closekeyboard(Keyboardctl*);
enum { enum {
KF= 0xF000, /* Rune: beginning of private Unicode space */ KF= 0xF000, /* Rune: beginning of private Unicode space */
Kdel= 0x7F,
Spec= 0xF800, Spec= 0xF800,
/* KF|1, KF|2, ..., KF|0xC is F1, F2, ..., F12 */ /* KF|1, KF|2, ..., KF|0xC is F1, F2, ..., F12 */
Khome= KF|0x0D, Khome= KF|0x0D,