[Lazarus] Platform dependent modifier for common shortcut-keys?
Bart
bartjunk64 at gmail.com
Mon Oct 10 09:26:55 CEST 2011
On 10/8/11, Flávio Etrusco <flavio.etrusco at gmail.com> wrote:
>> Another approach might be to have a widgetset function like:
>>
>> function KeyCombo_IsCut(const Key: Word; const Shift: TShiftState):
>> Boolean
>>
>> or something like:
>>
>> type
>> TCommonShortCut = (tcsUnknown,tcsCut, tcsPaste, tcsCopy, tcsBof, tcsEof);
>>
>> function KeyComboToCommonShortcut(const Key: Word; const Shift:
>> TShiftState): TCommonShortCut;
>> begin
>> //default to tcsUnKnown;
>> Result := tcsUnKnown;
>> ...
>> end;
>>
>> Bart
>
> This is a very good idea.
> Check/Test/IsStandardShortCut? ;-)
>
Where (in what unit) should something like this be implemented then?
Bart
More information about the Lazarus
mailing list