Ctrl-down-arrow, Ctrl-up-arrow insert "Down" and "Up"

8 views
Skip to first unread message

SegundoBob

unread,
Feb 29, 2012, 3:09:55 PM2/29/12
to leo-editor
Running Leo-Editor 5041 under Ubuntu 11.10 with the Fluxbox window
manager, I see that when the focus is in the body or a headline open
for editing, hitting Ctrl-down-arrow inserts the word "Down" and
hitting Ctrl-up-arrow inserts the word "Up".

Is this the desired behavior? I think it would be slightly better if
these keystrokes did nothing.

Edward K. Ream

unread,
Mar 1, 2012, 7:10:05 AM3/1/12
to leo-e...@googlegroups.com
On Wed, Feb 29, 2012 at 2:09 PM, SegundoBob <bhos...@ieee.org> wrote:
> Running Leo-Editor 5041 under Ubuntu 11.10 with the Fluxbox window
> manager, I see that when the focus is in the body or a headline open
> for editing, hitting Ctrl-down-arrow inserts the word "Down" and
> hitting Ctrl-up-arrow inserts the word "Up".
>
> Is this the desired behavior?

No. As you say, they should do nothing if not bound to something more useful.

I see this on Ubuntu, but not on Windows.

The easiest (best??) solution will be to add the following bindings to
leoSettings.leo:

do-nothing = ctrl-Down
do-nothing = ctrl-Up

This takes care of the problem, and indeed is a general solution for
all similar kinds of problems.

Otoh, it's possible that an "internal" solution would be more
reasonable. That is, it would seem natural to ignore unbound
*modified* arrow keys. I'll look into it, but expect to see the
binding above added to leoSettings.leo soon.

Edward

Edward K. Ream

unread,
Mar 1, 2012, 7:32:15 AM3/1/12
to leo-e...@googlegroups.com
On Thu, Mar 1, 2012 at 6:10 AM, Edward K. Ream <edre...@gmail.com> wrote:

>expect to see the binding above added to leoSettings.leo soon.

Done at rev 5050. All unit tests pass with the do-nothing bindings.

EKR

SegundoBob

unread,
Mar 1, 2012, 12:52:12 PM3/1/12
to leo-editor
On Mar 1, 4:32 am, "Edward K. Ream" <edream...@gmail.com> wrote:
> On Thu, Mar 1, 2012 at 6:10 AM, Edward K. Ream <edream...@gmail.com> wrote:
>
> >expect to see the binding above added to leoSettings.leo soon.
>
> Done at rev 5050.  All unit tests pass with the do-nothing bindings.

Your fix works for me. Thanks.

Edward K. Ream

unread,
Mar 1, 2012, 1:02:02 PM3/1/12
to leo-e...@googlegroups.com
On Thu, Mar 1, 2012 at 11:52 AM, SegundoBob <bhos...@ieee.org> wrote:

>> Done at rev 5050.  All unit tests pass with the do-nothing bindings.
>
> Your fix works for me.  Thanks.

Glad to hear it.

Edward

SegundoBob

unread,
Mar 5, 2012, 11:39:57 AM3/5/12
to leo-editor
Same problem with Ctrl+PgUp and Ctrl+PgDown.

Edward K. Ream

unread,
Mar 5, 2012, 1:12:37 PM3/5/12
to leo-e...@googlegroups.com
On Mon, Mar 5, 2012 at 10:39 AM, SegundoBob <bhos...@ieee.org> wrote:
> Same problem with Ctrl+PgUp and Ctrl+PgDown.

Thanks: I'll assign them to do-nothing by default in leoSettings.leo.

Edward

Edward K. Ream

unread,
Mar 5, 2012, 3:33:32 PM3/5/12
to leo-e...@googlegroups.com

Done at rev 5070.

Edward

Reply all
Reply to author
Forward
0 new messages