Sign in Join

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

Mailing lists / lazarus / 2008-09

New Mac OS X Scheme

14 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

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

Felipe Monteiro de Carvalho

Hello,

I added a new Mac OS X Scheme. I thinked a lot about how to name it, and I decided to rename the existing Mac OS X Scheme to: Mac OS X (Apple style)

And the new one is: Mac OS X (Lazarus style)

The names may change if other developers have a better name.

The idea is to be confortable for people using Lazarus in several operating systems. Particularly I was going crazy because home/end goes to end of line in Windows and Linux but end of file in Mac, which makes me loose where I was before.

In the moment this is the only difference with the standard Mac OS X style. This is documented here:

http://wiki.lazarus.freepascal.org/Lazarus_IDE_Shortcuts

Not everything should be the same as on Windows, like using Command+C instead of Ctrl+C should be kept, so one needs to exercise good sense when choosing what should go into this new scheme and what not. One guideline might be OpenOffice. It uses some Apple keys but not all. I beliave they were also trying to improve the experience of users comming from other operating systems.

I commited in rev 16514

thanks,

Felipe Monteiro de Carvalho PS: Posted to general instead of devel because I feel this is useful information for many people

Reply by email

Tom Gregorovic
to Felipe Monteiro de Carvalho
Felipe Monteiro de Carvalho wrote 14 lines
Hello, I added a new Mac OS X Scheme. I thinked a lot about how to name it, and I decided to rename the existing Mac OS X Scheme to: Mac OS X (Apple style) And the new one is: Mac OS X (Lazarus style) The names may change if other developers have a better name. The idea is to be confortable for people using Lazarus in several operating systems. Particularly I was going crazy because home/end goes to end of line in Windows and Linux but end of file in Mac, which makes me loose where I was before.

I agree, home and end drives me mad.
We also need better shortcuts for toggle form/unit, debugging step over and step into, optimally one key. Looking into XCode I noticed some four key shortcuts, that is horrible.

Show quoted text 13 lines
In the moment this is the only difference with the standard Mac OS X style. This is documented here: http://wiki.lazarus.freepascal.org/Lazarus_IDE_Shortcuts Not everything should be the same as on Windows, like using Command+C instead of Ctrl+C should be kept, so one needs to exercise good sense when choosing what should go into this new scheme and what not. One guideline might be OpenOffice. It uses some Apple keys but not all. I beliave they were also trying to improve the experience of users comming from other operating systems.

Yes, it should be Command+C, because this is used in edit controls in IDE.

Tom Gregorovic

Reply by email

Felipe Monteiro de Carvalho
to Tom Gregorovic
Tom Gregorovic wrote
I agree, home and end drives me mad. We also need better shortcuts for toggle form/unit, debugging step over and step into, optimally one key. Looking into XCode I noticed some four key shortcuts, that is horrible.

Indeed, but I think there are no one key shortcuts available. Any suggestions to what kind of shortcuts could be used for those?

Maybe Ctrl+F to view the forms. Ctrl+U is already for unident, so we need something else to view the units.

I just started OpenOffice and got some ideas! We cannot use the F keys, but we can use Cmd+F1..12!

Maybe this could be a good solution? Substitute each F key usage in other platforms with Cmd+F1..12. It's very easy to memorize, and 2 keys aren't that bad.

For forms we can either use Ctrl+F or Cmd+Shift+F12

What do you think?

Felipe Monteiro de Carvalho

Reply by email

Marco van de Voort
to Mattias Gärtner
Mattias G?rtner wrote
Not on all Macs. For example the Mac book with american keyboard maps Cmd+F keys to F keys. Probably this can be turned off somehow.

All to exotic combo's might also unnecessarily confuse KVMs. Like the one attached to my Mini :_)

Reply by email

Felipe Monteiro de Carvalho
to Marco van de Voort
Marco van de Voort wrote
All to exotic combo's might also unnecessarily confuse KVMs. Like the one attached to my Mini :_)

What are KVMs?

Not on all Macs. For example the Mac book with american keyboard maps Cmd+F keys to F keys. Probably this can be turned off somehow.

This is bad news. Do you have such a MacBook?

And are you sure about this? I just changed my keyboard layout and using Command+F key did not change the brightness, etc.

I think the Apple scheme must not use F keys.

Of couse I am only talking about the Mac OS X Lazarus scheme

The os-x-lazarus scheme could use them if we provide some hints how to configure keyboards to not eat all F key combos.

You can tell it to give all F keys to user programs in the Preferences. Then you use Fn+F key to access the special Apple functions. But I don't like this solution, it's too intrusive.

Felipe Monteiro de Carvalho

Reply by email

Marco van de Voort
to Felipe Monteiro de Carvalho
Felipe Monteiro de Carvalho wrote 5 lines
On Wed, Sep 10, 2008 at 9:33 AM, Marco van de Voort wrote: > All to exotic combo's might also unnecessarily confuse KVMs. Like the one > attached to my Mini :_) What are KVMs?

Keyboard-Video-Mouse switches. One kbd+mouse+screen for several computers.

But in general it goes for all devices that are "different", like keyboards that are connected through converters etc, they sometimes don't recognize complex and/or non standard combo's.

But that is a matter of testing. If you have an app (src, since PPC) to test with, I'll be happy too.

Reply by email

Felipe Monteiro de Carvalho
to Marco van de Voort

Another problem is the key combo Shift+Home/End. It selects to the start/end of the file, instead of to the end of the line like I have set it:

  ecSelLineStart: SetResult(VK_HOME, [ssShift],VK_LEFT,[ssMeta,ssShift]);
  ecSelLineEnd: SetResult(VK_END, [ssShift],VK_RIGHT,[ssMeta,ssShift]);
  ecSelEditorTop: SetResult(VK_HOME, [ssShift,ssCtrl],VK_UNKNOWN,[]);
  ecSelEditorBottom: SetResult(VK_END, [ssShift,ssCtrl],VK_UNKNOWN,[]);

Does anyone know why it is ignoring the requisite for Ctrl and selecting to the end of the file?

Felipe Monteiro de Carvalho

Reply by email

Mattias Gaertner
to Felipe Monteiro de Carvalho: What are KVMs? This is bad news. Do you have such a MacBook? And are you sure about this?…
Show quoted text 12 lines
On Wed, Sep 10, 2008 at 9:33 AM, Marco van de Voort wrote: > All to exotic combo's might also unnecessarily confuse KVMs. Like > the one attached to my Mini :_) What are KVMs? > Not on all Macs. > For example the Mac book with american keyboard maps Cmd+F keys to > F keys. Probably this can be turned off somehow. This is bad news. Do you have such a MacBook?

Yes.

And are you sure about this? I just changed my keyboard layout and using Command+F key did not change the brightness, etc.

Yes, I'm sure. Any F combination without the fn modifier is eaten by OS X (except F5+F6). Pressing the fn key gives all F combinations to lazarus.

Show quoted text 10 lines
> I think the Apple scheme must not use F keys. Of couse I am only talking about the Mac OS X Lazarus scheme > The os-x-lazarus scheme could use them if we provide some hints how > to configure keyboards to not eat all F key combos. You can tell it to give all F keys to user programs in the Preferences. Then you use Fn+F key to access the special Apple functions. But I don't like this solution, it's too intrusive.

Yes, this preference switches the behavior. Now fn+F keys are eaten by OS X and F keys are given to lazarus. I could live with that.

Mattias

Reply by email

Felipe Monteiro de Carvalho
to Mattias Gaertner
Mattias Gaertner wrote
Yes, this preference switches the behavior. Now fn+F keys are eaten by OS X and F keys are given to lazarus. I could live with that.

Indeed, if Cmd+F keys don't work this is our best shot. I didn't know that Fn makes the F keys work, so we don't even need necessarely to activate the switch in Preferences.

Felipe Monteiro de Carvalho

Reply by email

Felipe Monteiro de Carvalho
to Felipe Monteiro de Carvalho
Felipe Monteiro de Carvalho wrote
In my MacBook the keys from F8 to F12 are never sent to applications, even clicking in the button to inverse the Fn+Fkeys policy =(

Any suggestions to work around this? The most important shortcuts from Lazarus are in the F8-F12 area, like run F9, show units F12, etc =/ I could simply shift them to F2-F6. I think there aren't many shortcuts there. And a simple scheme is important to keep things easy to memorize.

Felipe Monteiro de Carvalho

Reply by email

Mattias Gaertner
to Felipe Monteiro de Carvalho
Show quoted text 11 lines
On Thu, Sep 11, 2008 at 3:14 PM, Felipe Monteiro de Carvalho wrote: > In my MacBook the keys from F8 to F12 are never sent to > applications, even clicking in the button to inverse the Fn+Fkeys > policy =( Any suggestions to work around this? The most important shortcuts from Lazarus are in the F8-F12 area, like run F9, show units F12, etc =/ I could simply shift them to F2-F6. I think there aren't many shortcuts there. And a simple scheme is important to keep things easy to memorize.

Forget the F keys:
Recent Macbook with american keyboard: only F5 and F6 are free Older Macbook with german keyboard: F8-F12 are free.

Mattias

Reply by email

Felipe Monteiro de Carvalho
to Mattias Gaertner
Mattias Gaertner wrote
Forget the F keys: Recent Macbook with american keyboard: only F5 and F6 are free Older Macbook with german keyboard: F8-F12 are free.

Well, Apple doesn't make it any easier for us, does it?

Felipe Monteiro de Carvalho

Reply by email