One more compatibility fix for clipboard resident, fixed dead key - space combinations
This commit is contained in:
@@ -744,7 +744,7 @@ struct kbd {
|
||||
{ VK_TAB, Key_Tab, Key_S_Tab, Key_C_Tab, Key_A_Tab },
|
||||
{ VK_RETURN, Key_Ent, Key_Ent, Key_C_Ent, Key_A_Ent },
|
||||
{ VK_ESCAPE, Key_Esc, Key_Esc, Key_Esc, Key_A_Esc },
|
||||
{ VK_SPACE, Key_Space, Key_Space, Key_Space, Key_Space },
|
||||
{ VK_SPACE, -1, -1, Key_Space, Key_Space },
|
||||
|
||||
{ '0', Key_0, Key_S_0, -1, Key_A_0 },
|
||||
{ '1', Key_1, Key_S_1, -1, Key_A_1 },
|
||||
@@ -894,7 +894,7 @@ int gkbd_nt2bios(INPUT_RECORD& inp) {
|
||||
if(c != -1)
|
||||
if(ascii and not (right_alt_same_as_left ? (state & (LEFT_ALT_PRESSED | RIGHT_ALT_PRESSED)) : (state & LEFT_ALT_PRESSED)))
|
||||
if(isalnum(keycode))
|
||||
return ascii;
|
||||
return (ascii == ' ') ? Key_Space : ascii;
|
||||
if(ISEXT(c))
|
||||
return EXTVAL(c) << 8;
|
||||
|
||||
|
@@ -231,9 +231,10 @@ char* g_get_clip_text(void) {
|
||||
cpu.bx(0x0000);
|
||||
cpu.genint(0x2f);
|
||||
if(cpu.ax() != 0x0000) {
|
||||
text = (char *) throw_malloc(len);
|
||||
text = (char *) throw_malloc(len+1);
|
||||
if(text)
|
||||
movedata(selector, 0, _my_ds(), (unsigned) text, len);
|
||||
text[len] = NUL;
|
||||
}
|
||||
__dpmi_free_dos_memory(selector);
|
||||
}
|
||||
|
Reference in New Issue
Block a user