Sign in Join

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

Mailing lists / lazarus / 2008-10

Mac OS X : How to get my app to show proper Short-Cuts...

8 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

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

Unknown author

Hi all,
I have a Carbon application, but the Short-cuts do not display correctly in the menus and as such don't work correct.

For example
The File Open menu short-cut displays as
^O and requires you to press Ctrl+O
but I want it to work so that I can use Cmd+O instead, like other standard Carbon applications.
I believe this worked correctly ( allowing Cmd+O ) before the new Lazarus style Key mappings was introduced.

Is this a setting somewhere within my project file?

I'm using Svn Revision 17053.

Thanks,

Dominique?

Reply by email

Unknown author
to Unknown author

Does anyone know how to fix this?

Dominique.

Hi all, I have a Carbon application, but the Short-cuts do not display

correctly

Show quoted text 6 lines
in the menus and as such don't work correct. For example The File Open menu short-cut displays as ^O and requires you to press Ctrl+O but I want it to work so that I can use Cmd+O instead, like other

standard

Show quoted text 17 lines
Carbon applications. I believe this worked correctly ( allowing Cmd+O ) before the new Lazarus style Key mappings was introduced. Is this a setting somewhere within my project file? I'm using Svn Revision 17053. Thanks, Dominique? _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Tobias Giesen
to Unknown author

Hi,

personally I use Mac OS Carbon API functions to manipulate the menu whenever the LCL doesn't do it right.

Kind Regards,
Tobias Giesen

Super Flexible Software Ltd. & Co. KG
Lessingstr. 42
48485 Neuenkirchen, Germany
www.superflexible.com
www.tgtools.com

----------------------------------------------------------- Registered at register court Steinfurt as HRA 5061 Liability / general partner: TGTools Ltd.
Company No. 05513299
Registered in England and Wales
Directors: Tobias Giesen and Claudia H?bl

Reply by email

Unknown author
to Tobias Giesen

So is what I reported a bug that should be added to the bug tracker, as this was definitely working prior to the "Lazarus Key mapping" fix, probably because carbon apps back then, just didn't have any choice but to support the Cmd+SomeKey mapping.

So Tobias, how do you use the Carbon API to change ^C to Cmd+C?

Dominique.

Tobias Giesen wrote 26 lines
Hi, personally I use Mac OS Carbon API functions to manipulate the menu whenever the LCL doesn't do it right. Kind Regards, Tobias Giesen Super Flexible Software Ltd. & Co. KG Lessingstr. 42 48485 Neuenkirchen, Germany www.superflexible.com www.tgtools.com ----------------------------------------------------------- Registered at register court Steinfurt as HRA 5061 Liability / general partner: TGTools Ltd. Company No. 05513299 Registered in England and Wales Directors: Tobias Giesen and Claudia H?bl _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

EarMaster - Bent Olsen
to Unknown author

Hi,

We use short cuts like Meta+O for Ctrl+O, but you need to map short cuts dynamically - some short cuts on Win32 needs to be remapped for Mac users.

Regards,
Normann

Show quoted text 9 lines
So is what I reported a bug that should be added to the bug tracker, as this was definitely working prior to the "Lazarus Key mapping" fix, probably because carbon apps back then, just didn't have any choice but to support the Cmd+SomeKey mapping. So Tobias, how do you use the Carbon API to change ^C to Cmd+C? Dominique.

Reply by email

Unknown author
to EarMaster - Bent Olsen

Hi Normann,
Can you explain what you mean by dynamically? Do you mean via Carbon API calls or LCL settings?

Dominique.

"EarMaster - Bent Olsen" wrote
Hi, We use short cuts like Meta+O for Ctrl+O, but you need to map short cuts dynamically - some short cuts on Win32 needs to be remapped for Mac

users.

Show quoted text 19 lines
Regards, Normann > So is what I reported a bug that should be added to the bug tracker, as > this was definitely working prior to the "Lazarus Key mapping" fix, > probably because carbon apps back then, just didn't have any choice but > to > support the Cmd+SomeKey mapping. > > So Tobias, how do you use the Carbon API to change ^C to Cmd+C? > > Dominique. _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

EarMaster - Bent Olsen
to Unknown author

Hi,

Via LCL - by setting ShortCut properties for menus and actions with ssMeta in Carbon, or ssCtrl in Win32.

Hope this helps,
Normann

Show quoted text 30 lines
Hi Normann, Can you explain what you mean by dynamically? Do you mean via Carbon API calls or LCL settings? Dominique. On Tue, 21 Oct 2008 09:20:27 +0200, "EarMaster - Bent Olsen" wrote: > Hi, > > We use short cuts like Meta+O for Ctrl+O, but you need to map short cuts > dynamically - some short cuts on Win32 needs to be remapped for Mac users. > > Regards, > Normann > >> So is what I reported a bug that should be added to the bug tracker, as >> this was definitely working prior to the "Lazarus Key mapping" fix, >> probably because carbon apps back then, just didn't have any choice but >> to >> support the Cmd+SomeKey mapping. >> >> So Tobias, how do you use the Carbon API to change ^C to Cmd+C? >> >> Dominique.

Reply by email

Unknown author
to EarMaster - Bent Olsen

Ah, for some weird reason I thought it needed API calls.

It is now all set via the IDE.

Thanks again for the clarification.

Dominique.

"EarMaster - Bent Olsen" wrote
Hi, Via LCL - by setting ShortCut properties for menus and actions with

ssMeta

Show quoted text 40 lines
in Carbon, or ssCtrl in Win32. Hope this helps, Normann > Hi Normann, > Can you explain what you mean by dynamically? Do you mean via Carbon > API > calls or LCL settings? > > Dominique. > > On Tue, 21 Oct 2008 09:20:27 +0200, "EarMaster - Bent Olsen" > wrote: > > Hi, > > > > We use short cuts like Meta+O for Ctrl+O, but you need to map short > cuts > > dynamically - some short cuts on Win32 needs to be remapped for Mac > users. > > > > Regards, > > Normann > > > >> So is what I reported a bug that should be added to the bug tracker, > as > >> this was definitely working prior to the "Lazarus Key mapping" fix, > >> probably because carbon apps back then, just didn't have any choice > but > >> to > >> support the Cmd+SomeKey mapping. > >> > >> So Tobias, how do you use the Carbon API to change ^C to Cmd+C? > >> > >> Dominique. _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email