mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-01 11:32:48 -05:00
New function-key mode similar to modern xterm.
This is the same as the previous FUNKY_XTERM mode if you don't press any modifier keys, but now Shift or Ctrl or Alt with function keys adds an extra bitmap parameter. The bitmaps are the same as the ones used by the new SHARROW_BITMAP arrow key mode.
This commit is contained in:
@ -4512,8 +4512,12 @@ static int TranslateKey(UINT message, WPARAM wParam, LPARAM lParam,
|
||||
case VK_F19: fkey_number = 19; goto numbered_function_key;
|
||||
case VK_F20: fkey_number = 20; goto numbered_function_key;
|
||||
numbered_function_key:
|
||||
consumed_alt = false;
|
||||
p += format_function_key((char *)p, term, fkey_number,
|
||||
shift_state & 1, shift_state & 2);
|
||||
shift_state & 1, shift_state & 2,
|
||||
left_alt, &consumed_alt);
|
||||
if (consumed_alt)
|
||||
left_alt = false; /* supersedes the usual prefixing of Esc */
|
||||
return p - output;
|
||||
|
||||
SmallKeypadKey sk_key;
|
||||
|
Reference in New Issue
Block a user