On Tue, Nov 16, 2010 at 3:52 PM, smcho <[email protected]> wrote:

> In summary.
>
> 1. @settings/Keyboard and minibuffer/@bool swap_mac_keys = True seems to 
> disable Command Key, but Control key still doesn't work.

> 2. I can't use Command-C/Command-V key for headline with Leo (http://
> groups.google.com/group/leo-editor/browse_thread/thread/
> 40a4e8dc38ada557#) with @settings/Keyboard and minibuffe/@bool
> swap_mac_keys = True.

> 3. I can't switch Command-C/Control-C key on my Mac. (http://
> groups.google.com/group/leo-editor/browse_thread/thread/
> 1ee0b35b4f76c999) with @settings/Keyboard and minibuffe/@bool
> swap_mac_keys = True.

> 4. Emacs key emulation works only with Command Key (not Control key) with the 
>  "@settings/Command options/@bool swap_mac_keys =
> True" (http://groups.google.com/group/leo-editor/browse_thread/thread/
> 5e966f118f43561b)
>
> I'm not sure, but @settings/Keyboard and minibuffer/@bool
> swap_mac_keys doesn't seem to work with my Mac.

I can confirm that key bindings for the Mac are a problem, but it's
way too late in the release cycle to do anything "real" about this
problem.

The next major release, tentatively to be called Leo 4.9, will try to
do better, but this not an easy problem to solve.  In particular, my
iMac handles Microsoft and Apple keyboards differently.

Somewhat against my better judgment, I have changed Leo's code a tiny
bit to support better tracing when

    @bool trace_masterKeyHandler = True

Setting this true (in myLeoSettings.leo) will trace the key as seen by
the Qt event-handling code and as seen by k.masterKeyHandler. Enabling
this trace will show you what key Leo thinks you pressed :-)

In particular, depending on your keyboard, you may want to make
bindings for the Meta key.  Thus, the workaround at present would be
to create a whole new set of key bindings (in myLeoSettings.leo) for
the mac.  There is no guarantee that this will work for all keys (the
Mac seems to grab clover-H before it gets to Leo), but it is the only
think that I can suggest now.

We can take a look at more substantial fixes after Leo 4.8 final goes
out the door.

I have just filed a bug for this issue:
https://bugs.launchpad.net/leo-editor/+bug/681325

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to