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);
break;
case VK_DELETE:
// kbdputc(kbdq, Kdel);
kbdputc(kbdq, 0x7f); // should have Kdel in keyboard.h
kbdputc(kbdq, Kdel);
break;
case VK_UP:
kbdputc(kbdq, Kup);

View File

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