зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
1f9a03af0c
Коммит
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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче