mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
Bug 1759558: Ignore special keys when hiding pointer while typing on Windows r=cmartin
Clipboard operations, cursor navigation and input mode changes should not hide the cursor. This mimics behavior in other Windows apps (e.g. WordPad). Differential Revision: https://phabricator.services.mozilla.com/D143849
This commit is contained in:
parent
1f9a03af0c
commit
1441683ada
@ -650,7 +650,25 @@ static bool IsMouseVanishKey(WPARAM aVirtKey) {
|
||||
case VK_RMENU:
|
||||
case VK_LWIN:
|
||||
case VK_RWIN:
|
||||
case VK_INSERT:
|
||||
case VK_DELETE:
|
||||
case VK_HOME:
|
||||
case VK_END:
|
||||
case VK_ESCAPE:
|
||||
case VK_PRINT:
|
||||
case VK_UP:
|
||||
case VK_DOWN:
|
||||
case VK_LEFT:
|
||||
case VK_RIGHT:
|
||||
case VK_PRIOR: // PgUp
|
||||
case VK_NEXT: // PgDn
|
||||
return false;
|
||||
case 'A':
|
||||
case 'C':
|
||||
case 'V':
|
||||
case 'X':
|
||||
// Ignore Ctrl-A, Ctrl-C, Ctrl-V, Ctrl-X
|
||||
return (GetKeyState(VK_CONTROL) & 0x8000) != 0x8000;
|
||||
default:
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user