Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2018-08

Fix for LCLProc

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

AlexeyT
function KeyAndShiftStateToKeyString(Key: word; ShiftState:
TShiftState): String;

....

   if ssCtrl in ShiftState then AddPart(ifsCtrl);
   if ssAlt in ShiftState then AddPart(ifsAlt);
   if ssShift in ShiftState then AddPart(ifsVK_SHIFT);
   if ssMeta in ShiftState then
     {$IFDEF LCLcarbon}
     AddPart(ifsVK_CMD);
     {$ELSE}
     AddPart(ifsVK_META);
     {$ENDIF}
   if ssSuper in ShiftState then AddPart(ifsVK_SUPER);

pls, change here IFDEF to {$ifdef darwin} (to use in cocoa too).

Regards, Alexey

Reply by email