mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 00:39:44 +02:00
LCL carbon: fixed #0011015: Mac OS X : Ctrl+Shift+/ not allowed as a Short Cut Key combination by slightly modified patch from Dmitry Boyarintsev
git-svn-id: trunk@17599 -
This commit is contained in:
parent
434df3cf0d
commit
dd0f145e7e
@ -615,10 +615,22 @@ const
|
||||
VKKeyChar:=#13;
|
||||
UTF8Character:=VKKeyChar;
|
||||
end;
|
||||
MK_TILDE: VKKeyCode := VK_OEM_3;
|
||||
MK_MINUS: VKKeyCode := VK_OEM_MINUS;
|
||||
MK_EQUAL: VKKeyCode := VK_OEM_PLUS;
|
||||
MK_BACKSLASH: VKKeyCode := VK_OEM_5;
|
||||
MK_LEFTBRACKET: VKKeyCode := VK_OEM_4;
|
||||
MK_RIGHTBRACKET: VKKeyCode := VK_OEM_6;
|
||||
MK_SEMICOLON: VKKeyCode := VK_OEM_1;
|
||||
MK_QUOTE: VKKeyCode := VK_OEM_7;
|
||||
MK_COMMA: VKKeyCode := VK_OEM_COMMA;
|
||||
MK_PERIOD: VKKeyCode := VK_OEM_PERIOD;
|
||||
MK_SLASH: VKKeyCode := VK_OEM_2;
|
||||
end;
|
||||
end;
|
||||
|
||||
if VKKeyCode=VK_UNKNOWN then begin
|
||||
if VKKeyCode=VK_UNKNOWN then
|
||||
begin
|
||||
// There is no known VK_ code for this characther. Use a dummy keycode
|
||||
// (E8, which is unused by Windows) so that KeyUp/KeyDown events will be
|
||||
// triggered by LCL.
|
||||
|
@ -312,6 +312,17 @@ begin
|
||||
VK_SHIFT : Result := MK_SHIFTKEY;
|
||||
VK_CONTROL : Result := MK_COMMAND;
|
||||
VK_MENU : Result := MK_ALT;
|
||||
VK_OEM_3 : Result := MK_TILDE;
|
||||
VK_OEM_MINUS : Result := MK_MINUS;
|
||||
VK_OEM_PLUS : Result := MK_EQUAL;
|
||||
VK_OEM_5 : Result := MK_BACKSLASH;
|
||||
VK_OEM_4 : Result := MK_LEFTBRACKET;
|
||||
VK_OEM_6 : Result := MK_RIGHTBRACKET;
|
||||
VK_OEM_1 : Result := MK_SEMICOLON;
|
||||
VK_OEM_7 : Result := MK_QUOTE;
|
||||
VK_OEM_COMMA : Result := MK_COMMA;
|
||||
VK_OEM_PERIOD: Result := MK_PERIOD;
|
||||
VK_OEM_2 : Result := MK_SLASH;
|
||||
else
|
||||
Result := 0;
|
||||
end;
|
||||
@ -1287,6 +1298,6 @@ finalization
|
||||
CGColorSpaceRelease(RGBColorSpace);
|
||||
CGColorSpaceRelease(GrayColorSpace);
|
||||
|
||||
|
||||
|
||||
end.
|
||||
|
||||
|
||||
|
@ -79,4 +79,15 @@ const
|
||||
MK_ALT = $3A; MK_OPTION = MK_ALT;
|
||||
MK_COMMAND = $37; MK_APPLE = MK_COMMAND;
|
||||
|
||||
MK_TILDE = 50; // `/~ key
|
||||
MK_MINUS = 27; // -/_ key
|
||||
MK_EQUAL = 24; // =/+ key
|
||||
MK_BACKSLASH = 42; // \ | key
|
||||
MK_LEFTBRACKET = 33; // [ { key
|
||||
MK_RIGHTBRACKET = 30; // ] } key
|
||||
MK_SEMICOLON = 41; // ; : key
|
||||
MK_QUOTE = 39; // ' " key
|
||||
MK_COMMA = 43; // , < key
|
||||
MK_PERIOD = 47; // . > key
|
||||
MK_SLASH = 44; // / ? key
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user