forked from mirrors/gecko-dev
		
	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
					
				
					 1 changed files with 18 additions and 0 deletions
				
			
		|  | @ -650,7 +650,25 @@ static bool IsMouseVanishKey(WPARAM aVirtKey) { | ||||||
|     case VK_RMENU: |     case VK_RMENU: | ||||||
|     case VK_LWIN: |     case VK_LWIN: | ||||||
|     case VK_RWIN: |     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; |       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: |     default: | ||||||
|       return true; |       return true; | ||||||
|   } |   } | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue
	
	 David Parks
						David Parks