mirror of
				https://gitlab.com/freepascal.org/lazarus/lazarus.git
				synced 2025-10-31 02:42:33 +01:00 
			
		
		
		
	lcl: report ssMeta in GetKeyShiftState
git-svn-id: trunk@34276 -
This commit is contained in:
		
							parent
							
								
									dfa2b4334b
								
							
						
					
					
						commit
						b839a5040a
					
				| @ -2705,13 +2705,15 @@ end; | ||||
| 
 | ||||
| function GetKeyShiftState: TShiftState; | ||||
| begin | ||||
|   Result:=[]; | ||||
|   if (GetKeyState(VK_CONTROL) and $8000)<>0 then | ||||
|     Include(Result,ssCtrl); | ||||
|   if (GetKeyState(VK_SHIFT) and $8000)<>0 then | ||||
|     Include(Result,ssShift); | ||||
|   if (GetKeyState(VK_MENU) and $8000)<>0 then | ||||
|     Include(Result,ssAlt); | ||||
|   Result := []; | ||||
|   if (GetKeyState(VK_CONTROL) and $8000) <> 0 then | ||||
|     Include(Result, ssCtrl); | ||||
|   if (GetKeyState(VK_SHIFT) and $8000) <> 0 then | ||||
|     Include(Result, ssShift); | ||||
|   if (GetKeyState(VK_MENU) and $8000) <> 0 then | ||||
|     Include(Result, ssAlt); | ||||
|   if ((GetKeyState(VK_LWIN) and $8000) <> 0) or ((GetKeyState(VK_RWIN) and $8000) <> 0) then | ||||
|     Include(Result, ssMeta); | ||||
| end; | ||||
| 
 | ||||
| {------------------------------------------------------------------------------ | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 paul
						paul