Re: is there any way to disable alt-letter hotkey for top-level menus?

2020-12-27 Thread Edward K. Ream
On Sun, Dec 27, 2020 at 3:50 AM gar  wrote:

> Edward, do you want [the @menuat] enhancement in leo's core?

Seems reasonable. Please create a Leo issue for this. When you are ready,
please reference the issue from the PR and vice versal.

Thanks.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS0EcBE13%3DbNmBxzCcdKPpjUFytoEZYHQz6tEw81idZ7ow%40mail.gmail.com.


Re: is there any way to disable alt-letter hotkey for top-level menus?

2020-12-27 Thread gar
What am I going to do with @menuat.
Reminder. `@menuat` directive has the following format: `** *<
action>* *[clipboard]*`, where action is one of: before, after, append,
cut, copy
Proposal. add another action `amend` which has parameter s/what-re/with-re
(which is similar to :s vim's command). When leoConfig meets this directive
it takes node's header and substitutes it applying given rule. Profit.

Edward, do you want such an enhancement in leo's core?

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAC%2B8SVzeqazp7JaLeVCD5FCDsQup7P%2Bq-ohdOYv5UZs8ccVSag%40mail.gmail.com.


Re: is there any way to disable alt-letter hotkey for top-level menus?

2020-12-26 Thread gar
Good candidate is `@menuat` directive. Now there's a few actions it
supports, but it looks a good place to add another like `noaccel`
Will try this idea later.

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAC%2B8SVy_0XURsj7ei6YE8d5twnZ%3DVs0RpjesG8-Yy5dVpc3YhA%40mail.gmail.com.


Re: is there any way to disable alt-letter hotkey for top-level menus?

2020-12-26 Thread gar
Here what I did to solve the problem programmatically.
In leoPyRef, in node `pbc.doMenus & helper` to line 11 `name =
h[len('@menu') :].strip()` added `.replace('&', '')`, so that the resulting
line became `name = h[len('@menu') :].strip().replace('&', '')`
The problem with accelerator gone. But this is not what everyone wants, it
is just the proof of the concept.

How I do see the fix. There should be a setting in myLeoSettings, say
`@bool menu-show-accels` by default set to True. If it is equal to False
then accelerators are ignored.
I am actually not sure that this controller has  and should have access to
c.config at this point. So the quick fix seems impossible to me - it must
be moved to some upper-level.

Edward and devs, can you please advise where to search for the right place?
And maybe the setting must be more versatile - say to specify to remove
accels only for top-level menus and leave unchanged all the rest or
something.

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAC%2B8SVzgV79oN5d8zRR08dWqfORyb4opoJFE4%2BxU_2fqQF8Fzw%40mail.gmail.com.


Re: is there any way to disable alt-letter hotkey for top-level menus?

2020-12-26 Thread gar
A year ago we all have discovered that Qt handles '&' as a mark of
placeholder in the item title. And the only way to get rid of placeholders
- is to get rid of 
Then you advised me to create a copy of the main menu tree in the
myLeoSettings outline.
Recently I saw a discussion that you have implemented a feature to
overwrite single items in menu tree w/o copying everything. But now cannot
find this original message.
I hoped that this could help me to remove this ugly @menu tree in my
settings. But looks like you dont remember this post too :-)

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAC%2B8SVxMnuZSOKj8S5%3D6%3DpGF8NVp0cPUd_MSJ5M8Ruvs_oSYKQ%40mail.gmail.com.


Re: is there any way to disable alt-letter hotkey for top-level menus?

2020-12-26 Thread Edward K. Ream
On Fri, Dec 25, 2020 at 3:10 PM gar  wrote:

Can you please remind me what the advice was? Can I use it to remove
> accelerator from top-level menu items of Leo and so remove (maybe outdated)
> menu tree from myLeoSettings?
>

The alt[+-]s\b regex search in leoSettings.leo quickly found the binding to
Alt-s:

# These commands do nothing except serve as placeholders for the
show-bindings command.
menu-shortcut = Alt-C # Cmds menu.
menu-shortcut = Alt-E # Edit menu.
menu-shortcut = Alt-F # File menu.
menu-shortcut = Alt-H # Help menu.
menu-shortcut = Alt-O # Outline menu.
menu-shortcut = Alt-P # Plugins menu.
menu-shortcut = Alt-S # Search and Settings menus.
menu-shortcut = Alt-W # Window menu.

The comment indicates that disabling these bindings is unlikely to help.
Indeed, Alt bindings are likely system bindings.

I don't remember anything about our previous conversation, but now perhaps
I have a half memory about system bindings :-)

Let's look at Leo's core to see if there is anything else that can be done.
Searching for 'menu-shortcut' finds only this:

@g.command('menu-shortcut')
def menuShortcutPlaceHolder(self, event=None):
"""
This will never be called.
A placeholder for the show-bindings command.
"""

So it looks like Leo isn't even trying to do anything with system bindings.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS2o6ScMt7sv22-0X%3DZ4aQmW1Px5n8hZLXUkdmnshu8z%2BQ%40mail.gmail.com.


Re: is there any way to disable alt-letter hotkey for top-level menus?

2020-12-25 Thread gar
Returning back to this issue
Now to get rid of top-level menus accelerators I have to keep a complete
menu tree in myLeoSettings.
Recently Edward wrote that it is possible to amend menus w/o duplicaing the
whole tree, but I cannot find this message.
Can you please remind me what the advice was? Can I use it to remove
accelerator from top-level menu items of Leo and so remove (maybe outdated)
menu tree from myLeoSettings?

вт, 24 сент. 2019 г. в 17:08, gar :

> Oh, that means that Qt is cooked in a wrong way.
> I believe that if alt modifiers were passed as accel arg - they would have
> been working ok
>
> вт, 24 сент. 2019 г. в 12:26, vitalije :
>
>>
>>
>> On Tuesday, September 24, 2019 at 11:12:52 AM UTC+2, gar wrote:
>>>
>>> Vitalije, thanks a lot!
>>>
>>> I encountered another interesting and odd behavior.
>>> When language different from english is enabled - all -based
>>> shortcuts dont work while -ones do.
>>> This behaves the same both on win and lin.
>>> Why can this be so?
>>>
>>> This is most likely Qt issue. While searching for hard-coded Plugins
>> menu, I found that Ctrl- are passed as accelerator argument to Qt,
>> while others are passed just as '&' character inside label. Not sure, but
>> it might be that '&' makes accelerator only the following byte in name,
>> which won't work for non-ascii letters.
>>
>> Vitalije
>>
>>
>>> Indeed you were right, it was hardcoded. The revision e74419f3
> 
> fixes this. If you update to latest revision in devel branch, and remove
> '&' from plugins menu in your settings, it won't be bound to Alt-p.

 --
>> You received this message because you are subscribed to the Google Groups
>> "leo-editor" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to leo-editor+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/leo-editor/abce7794-dbb3-4169-abb8-2065f88521de%40googlegroups.com
>> 
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAC%2B8SVzBWXmr2RZ58e_b%2BWVbUP9odPpVWMzQBMrjQ52wzBmwzg%40mail.gmail.com.


Re: is there any way to disable alt-letter hotkey for top-level menus?

2019-09-24 Thread gar
Oh, that means that Qt is cooked in a wrong way.
I believe that if alt modifiers were passed as accel arg - they would have
been working ok

вт, 24 сент. 2019 г. в 12:26, vitalije :

>
>
> On Tuesday, September 24, 2019 at 11:12:52 AM UTC+2, gar wrote:
>>
>> Vitalije, thanks a lot!
>>
>> I encountered another interesting and odd behavior.
>> When language different from english is enabled - all -based
>> shortcuts dont work while -ones do.
>> This behaves the same both on win and lin.
>> Why can this be so?
>>
>> This is most likely Qt issue. While searching for hard-coded Plugins
> menu, I found that Ctrl- are passed as accelerator argument to Qt,
> while others are passed just as '&' character inside label. Not sure, but
> it might be that '&' makes accelerator only the following byte in name,
> which won't work for non-ascii letters.
>
> Vitalije
>
>
>> Indeed you were right, it was hardcoded. The revision e74419f3
 
 fixes this. If you update to latest revision in devel branch, and remove
 '&' from plugins menu in your settings, it won't be bound to Alt-p.
>>>
>>> --
> You received this message because you are subscribed to the Google Groups
> "leo-editor" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to leo-editor+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/leo-editor/abce7794-dbb3-4169-abb8-2065f88521de%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAC%2B8SVzsnQNG%2Bk054TLGyT0D0uYCXbUmhKKzc-cAYw79oM%3D-Vg%40mail.gmail.com.


Re: is there any way to disable alt-letter hotkey for top-level menus?

2019-09-24 Thread vitalije


On Tuesday, September 24, 2019 at 11:12:52 AM UTC+2, gar wrote:
>
> Vitalije, thanks a lot!  
>
> I encountered another interesting and odd behavior.
> When language different from english is enabled - all -based 
> shortcuts dont work while -ones do.
> This behaves the same both on win and lin.
> Why can this be so?
>
> This is most likely Qt issue. While searching for hard-coded Plugins menu, 
I found that Ctrl- are passed as accelerator argument to Qt, while 
others are passed just as '&' character inside label. Not sure, but it 
might be that '&' makes accelerator only the following byte in name, which 
won't work for non-ascii letters. 

Vitalije
 

> Indeed you were right, it was hardcoded. The revision e74419f3 
>>> 
>>>   
>>> fixes this. If you update to latest revision in devel branch, and remove 
>>> '&' from plugins menu in your settings, it won't be bound to Alt-p.
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/abce7794-dbb3-4169-abb8-2065f88521de%40googlegroups.com.


Re: is there any way to disable alt-letter hotkey for top-level menus?

2019-09-24 Thread Edward K. Ream
On Tue, Sep 24, 2019 at 2:41 AM vitalije  wrote:

>
> On Tuesday, September 24, 2019 at 6:14:49 AM UTC+2, gar wrote:
>>
>> Does that mean that if one remove accelerators from menu item's string -
>> Qt wouldn't be interested?
>> So the approach with overriding menus is quite fine?
>> And if so - then the only obstacle is the ugly "Plugins" item which
>> accelerator is hardcoded somewhere?
>>
>> Indeed you were right, it was hardcoded. The revision e74419f3
> 
> fixes this. If you update to latest revision in devel branch, and remove
> '&' from plugins menu in your settings, it won't be bound to Alt-p.
>

Great!  It looks like what I just wrote was totally wrong.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS0M%2B9qrKO5WwEwfggEhxbshTafJ9%2BxQu4ANHfO%3Dx0xoug%40mail.gmail.com.


Re: is there any way to disable alt-letter hotkey for top-level menus?

2019-09-24 Thread Edward K. Ream
On Mon, Sep 23, 2019 at 11:14 PM gar  wrote:

> Does that mean that if one remove accelerators from menu item's string -
> Qt wouldn't be interested?
>

No. It means no such thing.

Accelerators and bindings are completely different.

Afaik, you can't bind Alt-P to anything, because Alt-P will bring up a menu
that starts with P.  This has nothing to do with accelerators.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS3TXdpBB-ODmaZ-DFsihsbKZ_5ojQVZRtBCgxH7ZJq%3D-w%40mail.gmail.com.


Re: is there any way to disable alt-letter hotkey for top-level menus?

2019-09-24 Thread gar
Vitalije, thanks a lot!

I encountered another interesting and odd behavior.
When language different from english is enabled - all -based shortcuts
dont work while -ones do.
This behaves the same both on win and lin.
Why can this be so?

Indeed you were right, it was hardcoded. The revision e74419f3
>> 
>> fixes this. If you update to latest revision in devel branch, and remove
>> '&' from plugins menu in your settings, it won't be bound to Alt-p.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAC%2B8SVzqSQ%3DuC%3Da8DyPFQH%2Bz3rW-nhj-6L%3DVW-n-RF5smifmfw%40mail.gmail.com.


Re: is there any way to disable alt-letter hotkey for top-level menus?

2019-09-24 Thread vitalije

On Tuesday, September 24, 2019 at 6:14:49 AM UTC+2, gar wrote:
>
> Does that mean that if one remove accelerators from menu item's string - 
> Qt wouldn't be interested?
> So the approach with overriding menus is quite fine?
> And if so - then the only obstacle is the ugly "Plugins" item which 
> accelerator is hardcoded somewhere?
>
> Indeed you were right, it was hardcoded. The revision e74419f3 

  
fixes this. If you update to latest revision in devel branch, and remove 
'&' from plugins menu in your settings, it won't be bound to Alt-p.

Vitalije

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/f4fdb6a8-d00c-4f3e-a55b-bb0cb2dae15a%40googlegroups.com.


Re: is there any way to disable alt-letter hotkey for top-level menus?

2019-09-23 Thread gar
Does that mean that if one remove accelerators from menu item's string - Qt
wouldn't be interested?
So the approach with overriding menus is quite fine?
And if so - then the only obstacle is the ugly "Plugins" item which
accelerator is hardcoded somewhere?

пн, 23 сент. 2019 г. в 18:49, Edward K. Ream :

> On Mon, Sep 23, 2019 at 1:43 AM gar  wrote:
>
> Excuse me, you all went into deep tech details and I lost the clue.
>> What does that mean from the user side?
>>
>
> It means that Qt prevents users from binding Alt-keys that are bound to
> menus.  I know of no *reasonable *workaround.  Don't bother messing with
> settings. That can't possibly work.
>
> Edward
>
> --
> You received this message because you are subscribed to the Google Groups
> "leo-editor" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to leo-editor+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/leo-editor/CAMF8tS3BFqPPrFeFAN2ONKrXOFpO82A%3Dt%3D8cYXvg0mUKLBCQEA%40mail.gmail.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAC%2B8SVyvY5fx-_65UdTOx-09kLbpeiUtsMo%3DivMY8PfV4mGGSw%40mail.gmail.com.


Re: is there any way to disable alt-letter hotkey for top-level menus?

2019-09-23 Thread Chris George
Hah. That explains a lot. :-)



On Monday, September 23, 2019 at 12:58:53 PM UTC-7, Edward K. Ream wrote:
>
>
>
> On Mon, Sep 23, 2019 at 11:38 AM Chris George  > wrote:
>
>> I have been investigating using --trace=keys.
>>
>> Using chords, like Ctrl+Shift and using Meta as well, I tried the 
>> following key binding in Leo.
>>
>> Ctrl+Meta+Shift+a = spell-find
>>
>> Leo responds in the terminal at startup: Warning: bad shortcut specifier: 
>> 'Ctrl+Meta+Shift+a = spell-find' and the chord does not work.
>>
>
> It's the other way around:
>
> spell-find = Ctrl+Meta+Shift+a
>
> Edward
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/dd3ae0d3-634d-429c-9f57-67d982900fb9%40googlegroups.com.


Re: is there any way to disable alt-letter hotkey for top-level menus?

2019-09-23 Thread Edward K. Ream
On Mon, Sep 23, 2019 at 11:38 AM Chris George  wrote:

> I have been investigating using --trace=keys.
>
> Using chords, like Ctrl+Shift and using Meta as well, I tried the
> following key binding in Leo.
>
> Ctrl+Meta+Shift+a = spell-find
>
> Leo responds in the terminal at startup: Warning: bad shortcut specifier:
> 'Ctrl+Meta+Shift+a = spell-find' and the chord does not work.
>

It's the other way around:

spell-find = Ctrl+Meta+Shift+a

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS2OoHyr5W-X%2BQAw-eq5dSppKR2XsD-5oRzUcwneyaasLQ%40mail.gmail.com.


Re: is there any way to disable alt-letter hotkey for top-level menus?

2019-09-23 Thread Edward K. Ream
On Mon, Sep 23, 2019 at 1:43 AM gar  wrote:

Excuse me, you all went into deep tech details and I lost the clue.
> What does that mean from the user side?
>

It means that Qt prevents users from binding Alt-keys that are bound to
menus.  I know of no *reasonable *workaround.  Don't bother messing with
settings. That can't possibly work.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS3BFqPPrFeFAN2ONKrXOFpO82A%3Dt%3D8cYXvg0mUKLBCQEA%40mail.gmail.com.


Re: is there any way to disable alt-letter hotkey for top-level menus?

2019-09-23 Thread gar
Excuse me, you all went into deep tech details and I lost the clue.
What does that mean from the user side?
For now, I created a copy of main @menu and removed all accelerators from 
top-level items.
None of them work except 'Plugins' one, both on Windows and on Linux.
I can live with it, but still want my alt-p back actually :-)
So as I see the problem - there is a solution, but seems like a single menu 
item is hardcoded.
Again, I see the same picture on both systems, and it's the same - how does 
that concerns complex Qt events?

воскресенье, 22 сентября 2019 г., 21:45:44 UTC+3 пользователь Edward K. 
Ream написал:
>
> On Sun, Sep 22, 2019 at 8:37 AM jkn > 
> wrote:
>
> >> The problem was in the traces.  I'll see what I can do with the 
> bindings.
> The --trace=keys traces are now much more informative.
> > Cool - thank you!
>
> Alas, there seems to be an intractable Qt problem, explained in #1344 
> .  Alt-keys 
> generate *only* shortcut-override events, and Qt generates *duplicate* 
> events.  Handling them duplicates almost all key presses.
>
> Googling this problem indicates that no easy solution is likely.  The 
> shortcut-override events come from child widgets, and focus issues are 
> involved.
>
> I could try ignoring duplicate events, but adding state/history to already 
> very complex event filters is asking for trouble.  In short, I know of no 
> reasonable way forward.
>
> Edward
>
> P.S.  There is no problem with making bindings to Alt keys.  The dummy 
> bindings in leoSettings.leo are never used. The problem is capturing the 
> incoming key events.
>
> EKR
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/f7fddb07-c302-4948-b905-97319b05df33%40googlegroups.com.


Re: is there any way to disable alt-letter hotkey for top-level menus?

2019-09-22 Thread Edward K. Ream
On Sun, Sep 22, 2019 at 8:37 AM jkn  wrote:

>> The problem was in the traces.  I'll see what I can do with the bindings.
The --trace=keys traces are now much more informative.
> Cool - thank you!

Alas, there seems to be an intractable Qt problem, explained in #1344
.  Alt-keys generate
*only* shortcut-override events, and Qt generates *duplicate* events.
Handling them duplicates almost all key presses.

Googling this problem indicates that no easy solution is likely.  The
shortcut-override events come from child widgets, and focus issues are
involved.

I could try ignoring duplicate events, but adding state/history to already
very complex event filters is asking for trouble.  In short, I know of no
reasonable way forward.

Edward

P.S.  There is no problem with making bindings to Alt keys.  The dummy
bindings in leoSettings.leo are never used. The problem is capturing the
incoming key events.

EKR

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS37%2BDO7T1buggsGnPMTY3g5_vyexvP1UfVNT%3DjYrvcKGQ%40mail.gmail.com.


Re: is there any way to disable alt-letter hotkey for top-level menus?

2019-09-22 Thread jkn


On Sunday, September 22, 2019 at 2:13:16 PM UTC+1, Edward K. Ream wrote:
>
> On Sunday, September 22, 2019 at 7:51:09 AM UTC-5, Edward K. Ream wrote:
>
> > --trace=keys doesn't show the required Alt keys. But perhaps this trace 
> doesn't tell the whole story. 
>
> The problem was in the traces.  I'll see what I can do with the bindings.
>
> Edward
>

Cool - thank you!

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/28861896-d03b-4f5b-8a61-04d7f1b6800d%40googlegroups.com.


Re: is there any way to disable alt-letter hotkey for top-level menus?

2019-09-22 Thread Edward K. Ream
On Sunday, September 22, 2019 at 7:51:09 AM UTC-5, Edward K. Ream wrote:

> --trace=keys doesn't show the required Alt keys. But perhaps this trace 
doesn't tell the whole story. 

The problem was in the traces.  I'll see what I can do with the bindings.

Edward

>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/70965160-75bf-4497-b8eb-1ebc3aeffd97%40googlegroups.com.


Re: is there any way to disable alt-letter hotkey for top-level menus?

2019-09-22 Thread Edward K. Ream
On Sun, Sep 22, 2019 at 7:05 AM jkn  wrote:

Except, I can run the CRiSP editor under exactly the same OSes (Win7,
> Linux of various flavours) as I run Leo, and it's ALT-x orientation for
> commands runs perfectly.
>
> So I don't really understand why you think this.
>

I think it because --trace=keys doesn't show the required Alt keys.

But perhaps this trace doesn't tell the whole story.  I'll investigate.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS3eayk8s%3Dt3SqNC5cG6m3fDdK8D55F9Sk2kDijxBJ8rRA%40mail.gmail.com.


Re: is there any way to disable alt-letter hotkey for top-level menus?

2019-09-22 Thread jkn


On Saturday, September 21, 2019 at 10:47:09 PM UTC+1, Edward K. Ream wrote:
>
> On Sat, Sep 21, 2019 at 3:49 PM jkn > 
> wrote:
>
> > In any case, is this:
>
> 
> https://stackoverflow.com/questions/37020992/qt-prevent-menubar-from-grabbing-focus-after-alt-pressed-on-windows
>
> of any use/relevance? 
>
> I doubt it.  This is not a qt issue, it is an OS issue.  I wouldn't spend 
> much time on this.
>
> Edward
>

Hi Edward
Except, I can run the CRiSP editor under exactly the same OSes (Win7, 
Linux of various flavours) as I run Leo, and it's ALT-x orientation for 
commands runs perfectly.

So I don't really understand why you think this.

Regards
Jon N


-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/b65c3205-05cb-4463-bf2d-d280a7217369%40googlegroups.com.


Re: is there any way to disable alt-letter hotkey for top-level menus?

2019-09-21 Thread Edward K. Ream
On Sat, Sep 21, 2019 at 4:44 PM Chris George  wrote:

It seems to me that the ability to address a few more modifier keys would
> solve a lot of problems.
>
> Now I know that cross platform will definitely be a problem.
>

True, but having more modifiers on particular platforms could be useful.

There was a recent PR that added support for two modifiers.  Don't remember
which.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS3Bm82kBT9S7esba4mN%2BF1Z9UMC1a2-8pKx6tjLroRHvg%40mail.gmail.com.


Re: is there any way to disable alt-letter hotkey for top-level menus?

2019-09-21 Thread Edward K. Ream
On Sat, Sep 21, 2019 at 3:49 PM jkn  wrote:

> In any case, is this:


https://stackoverflow.com/questions/37020992/qt-prevent-menubar-from-grabbing-focus-after-alt-pressed-on-windows

of any use/relevance?

I doubt it.  This is not a qt issue, it is an OS issue.  I wouldn't spend
much time on this.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS1Oq9%3DFpnA2o_sq-%2BEbL2-jEjzgxQaLdAFeddTSYOSOeA%40mail.gmail.com.


Re: is there any way to disable alt-letter hotkey for top-level menus?

2019-09-21 Thread Chris George
I haven't spent a lot of time with Leo's keyhandling.

My laptop keyboard is setup as a standard 105 key us in X11. xev reports no 
less than seven individual modifier keys that are available, not counting 
the Caps Lock key as I have already remapped that s l-ctrl long ago.

The keys are l-shift, l-ctrl, windows or super, l-alt, r-alt, r-ctrl, 
r-shift. They all report individual keycodes to Linux and there is an 
absolute ton of information out there about apping, remapping etc.

It seems to me that the ability to address a few more modifier keys would 
solve a lot of problems.

Now I know that cross platform will definitely be a problem. I don't know 
if these keys can be addressed individually on a Mac or in Windows.

Food for thought anyway.

Chris



On Friday, September 20, 2019 at 10:43:46 PM UTC-7, Edward K. Ream wrote:
>
> On Friday, September 20, 2019 at 5:02:59 PM UTC-5, jkn wrote:
>>
>>
>> The & is an accelerator, not a binding.
>>>
>>> y-e-s ... but then how is what Chris George suggesting supposed to 
>> work?
>>
>
> I don't think Chris's suggestion will work. The problem is that Windows 
> grabs alt keys.
>
> Edward
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/92585eb5-9e2a-4dd4-a763-6bd3d409e500%40googlegroups.com.


Re: is there any way to disable alt-letter hotkey for top-level menus?

2019-09-21 Thread jkn


On Saturday, September 21, 2019 at 6:43:46 AM UTC+1, Edward K. Ream wrote:
>
> On Friday, September 20, 2019 at 5:02:59 PM UTC-5, jkn wrote:
>>
>>
>> The & is an accelerator, not a binding.
>>>
>>> y-e-s ... but then how is what Chris George suggesting supposed to 
>> work?
>>
>
> I don't think Chris's suggestion will work. The problem is that Windows 
> grabs alt keys.
>
> Edward
>

I thought 'gar' was saying that it mostly - worked. Maybe not.

In any case, is this:


https://stackoverflow.com/questions/37020992/qt-prevent-menubar-from-grabbing-focus-after-alt-pressed-on-windows

of any use/relevance? (C++ not Python,, but you get the drift)

J^n

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/a823dcd5-79e0-4596-ac50-d92a325fdb90%40googlegroups.com.


Re: is there any way to disable alt-letter hotkey for top-level menus?

2019-09-20 Thread Edward K. Ream
On Friday, September 20, 2019 at 5:02:59 PM UTC-5, jkn wrote:
>
>
> The & is an accelerator, not a binding.
>>
>> y-e-s ... but then how is what Chris George suggesting supposed to 
> work?
>

I don't think Chris's suggestion will work. The problem is that Windows 
grabs alt keys.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/49ad7463-495b-4c29-97f8-539d51db0c5a%40googlegroups.com.


Re: is there any way to disable alt-letter hotkey for top-level menus?

2019-09-20 Thread jkn


On Friday, September 20, 2019 at 10:19:05 PM UTC+1, Edward K. Ream wrote:
>
>
>
> On Fri, Sep 20, 2019 at 2:58 PM jkn > 
> wrote:
>
> But if I remove the '&' from '', save and restart ... Alt-W still 
>> brings it up.
>>
>
> The & is an accelerator, not a binding.
>
> Edward
>

Hi Edward
y-e-s ... but then how is what Chris George suggesting supposed to work?

I do have Alt-W bound to save-file BTW.

J^n


-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/331cd3b5-1db8-45c7-a275-c7e790651895%40googlegroups.com.


Re: is there any way to disable alt-letter hotkey for top-level menus?

2019-09-20 Thread Edward K. Ream
On Fri, Sep 20, 2019 at 2:58 PM jkn  wrote:

But if I remove the '&' from '', save and restart ... Alt-W still
> brings it up.
>

The & is an accelerator, not a binding.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS1H0B%2BsVByChY4NqjL54-DZma0e7Cs3NhRr3VWkBTM4yA%40mail.gmail.com.


Re: is there any way to disable alt-letter hotkey for top-level menus?

2019-09-20 Thread jkn


On Friday, September 20, 2019 at 8:58:37 PM UTC+1, jkn wrote:
>
>
>
> On Friday, September 20, 2019 at 5:26:23 PM UTC+1, Chris George wrote:
>>
>> You can try a custom menu.
>>
>> Open leoSettings.leo and navigate to the main @menu node.
>>
>> Copy this node and paste it into your myLeoSettings.leo under the 
>> @settings node.
>>
>> Change the top level headlines to lose the hotkey markers.
>>
>> The downside is remembering to update your @menu node every now and then 
>> so you don't miss out on new features. :-)
>>
>> HTH,
>>
>> Chris
>>
>> On Friday, September 20, 2019 at 8:42:52 AM UTC-7, gar wrote:
>>>
>>> AFAIK when using Qt you need to specify those shortcuts by hand with 
>>> '&' char - pass addMenu("") to make a menu item with F as 
>>> shortcut. 
>>> Maybe you do quite the same in your code when create top-level menu? 
>>>
>>> 2019-09-20 17:59 GMT+03:00, Edward K. Ream : 
>>> > On Fri, Sep 20, 2019 at 9:47 AM gar  wrote: 
>>> > 
>>> >> I'd love to use those hotkeys as commands shortcut but they are busy 
>>> with 
>>> >> some never-used functions like menu actions. 
>>> >> How can I reassign them to something i really need? 
>>> >> 
>>> > 
>>> > The never-used functions are placeholders.  This is an operating 
>>> system 
>>> > "feature". 
>>> > 
>>> > --trace=keys shows that Leo never receives Alt keys related to menus. 
>>> > Depending on your OS it may be possible to override this behavior. 
>>> > 
>>> > This behavior is similar to Shift-Ctrl-0.  There are, supposedly, ways 
>>> to 
>>> > override such keys on Windows, but I have never found a workaround 
>>> that 
>>> > survives a reboot. 
>>> > 
>>> > Edward 
>>> > 
>>> > -- 
>>> > You received this message because you are subscribed to the Google 
>>> Groups 
>>> > "leo-editor" group. 
>>> > To unsubscribe from this group and stop receiving emails from it, send 
>>> an 
>>> > email to leo-e...@googlegroups.com. 
>>> > To view this discussion on the web visit 
>>> > 
>>> https://groups.google.com/d/msgid/leo-editor/CAMF8tS3i3LV2eiQETsrc1Wc5Fq8R_T4%3DEBkBxoULCwa%3DtbknrQ%40mail.gmail.com.
>>>  
>>>
>>> > 
>>>
>>
> That's an interesting idea - but it doesn't work for me (on Linux)
>
> myLeoSettings.leo is clearly being read, since I can add a 'stuff' top 
> level menu from there
>
> But if I remove the '&' from '', save and restart ... Alt-W still 
> brings it up.
>
> (I want this to use some CRiSP bindings, which are heavily weighted 
> towards ALT-keys)
>
> PS: looks like there is some automagic to use the first letter, regardless 
of any '&' in the headline. If I change the entry to '@menu Iwndow',
then ALT-I brings focus to the menu.

And I now remind myself that if I hold the ALT-key only down, each 
top-level menu entry has a little underscore under it's first character 
(including 'Run', which like 'Window' doesn't have an '&'.

{{{

Leo 6.0-devel, dock branch, build 18af67e858
2019-05-28 23:56:38 -0500
Python 3.6.8, PyQt version 5.9.5
linux

}}}


Jon N


-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/884c40f0-5726-46b6-a6a2-d0f3b1bb7068%40googlegroups.com.


Re: is there any way to disable alt-letter hotkey for top-level menus?

2019-09-20 Thread jkn


On Friday, September 20, 2019 at 5:26:23 PM UTC+1, Chris George wrote:
>
> You can try a custom menu.
>
> Open leoSettings.leo and navigate to the main @menu node.
>
> Copy this node and paste it into your myLeoSettings.leo under the 
> @settings node.
>
> Change the top level headlines to lose the hotkey markers.
>
> The downside is remembering to update your @menu node every now and then 
> so you don't miss out on new features. :-)
>
> HTH,
>
> Chris
>
> On Friday, September 20, 2019 at 8:42:52 AM UTC-7, gar wrote:
>>
>> AFAIK when using Qt you need to specify those shortcuts by hand with 
>> '&' char - pass addMenu("") to make a menu item with F as 
>> shortcut. 
>> Maybe you do quite the same in your code when create top-level menu? 
>>
>> 2019-09-20 17:59 GMT+03:00, Edward K. Ream : 
>> > On Fri, Sep 20, 2019 at 9:47 AM gar  wrote: 
>> > 
>> >> I'd love to use those hotkeys as commands shortcut but they are busy 
>> with 
>> >> some never-used functions like menu actions. 
>> >> How can I reassign them to something i really need? 
>> >> 
>> > 
>> > The never-used functions are placeholders.  This is an operating system 
>> > "feature". 
>> > 
>> > --trace=keys shows that Leo never receives Alt keys related to menus. 
>> > Depending on your OS it may be possible to override this behavior. 
>> > 
>> > This behavior is similar to Shift-Ctrl-0.  There are, supposedly, ways 
>> to 
>> > override such keys on Windows, but I have never found a workaround that 
>> > survives a reboot. 
>> > 
>> > Edward 
>> > 
>> > -- 
>> > You received this message because you are subscribed to the Google 
>> Groups 
>> > "leo-editor" group. 
>> > To unsubscribe from this group and stop receiving emails from it, send 
>> an 
>> > email to leo-e...@googlegroups.com. 
>> > To view this discussion on the web visit 
>> > 
>> https://groups.google.com/d/msgid/leo-editor/CAMF8tS3i3LV2eiQETsrc1Wc5Fq8R_T4%3DEBkBxoULCwa%3DtbknrQ%40mail.gmail.com.
>>  
>>
>> > 
>>
>
That's an interesting idea - but it doesn't work for me (on Linux)

myLeoSettings.leo is clearly being read, since I can add a 'stuff' top 
level menu from there

But if I remove the '&' from '', save and restart ... Alt-W still 
brings it up.

(I want this to use some CRiSP bindings, which are heavily weighted towards 
ALT-keys)

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/12ecc54e-025e-4f0c-b6b4-ec47561b0b83%40googlegroups.com.


Re: is there any way to disable alt-letter hotkey for top-level menus?

2019-09-20 Thread gar
пятница, 20 сентября 2019 г., 19:26:23 UTC+3 пользователь Chris George 
написал:
>
> You can try a custom menu.
>

Well it almost worked.. But 'Plugins' item still have accelerator.
I suspect it is hard coded somewhere in the leo's core.

 

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/0cd773bb-8478-4027-8983-0e7be2cac8bf%40googlegroups.com.


Re: is there any way to disable alt-letter hotkey for top-level menus?

2019-09-20 Thread gar
Not all of leo's top level menu items have access accelerator (Settings and 
Run dont).
I would suggest to get rid of those accelerators for the future versions 
since seems like they are not actually useful.

(Why I do advocate this? I am now trying to make leo's editing powerful 
enough to compete with vim. This requires me more new commands and more 
shortcuts to bind them to. And some of very perspective keys are busy with 
almost nothing.)

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/b321c42e-6402-47c4-9326-8d1b3cafeeae%40googlegroups.com.


Re: is there any way to disable alt-letter hotkey for top-level menus?

2019-09-20 Thread gar
That's great advise, and it works fine.
Bad thing is necessity to keep eyes on updates.
Can leo make clones of nodes in the external files? As I understand, 
pyLeo.leo is always present, so we can easily make clones.

пятница, 20 сентября 2019 г., 19:26:23 UTC+3 пользователь Chris George 
написал:
>
> Copy this node and paste it into your myLeoSettings.leo under the 
> @settings node.
> Change the top level headlines to lose the hotkey markers.
> The downside is remembering to update your @menu node every now and then 
> so you don't miss out on new features. :-)
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/4b15e1c1-9a02-40a1-b747-8299128b4190%40googlegroups.com.


Re: is there any way to disable alt-letter hotkey for top-level menus?

2019-09-20 Thread Chris George
You can try a custom menu.

Open leoSettings.leo and navigate to the main @menu node.

Copy this node and paste it into your myLeoSettings.leo under the @settings 
node.

Change the top level headlines to lose the hotkey markers.

The downside is remembering to update your @menu node every now and then so 
you don't miss out on new features. :-)

HTH,

Chris

On Friday, September 20, 2019 at 8:42:52 AM UTC-7, gar wrote:
>
> AFAIK when using Qt you need to specify those shortcuts by hand with 
> '&' char - pass addMenu("") to make a menu item with F as 
> shortcut. 
> Maybe you do quite the same in your code when create top-level menu? 
>
> 2019-09-20 17:59 GMT+03:00, Edward K. Ream  >: 
> > On Fri, Sep 20, 2019 at 9:47 AM gar > 
> wrote: 
> > 
> >> I'd love to use those hotkeys as commands shortcut but they are busy 
> with 
> >> some never-used functions like menu actions. 
> >> How can I reassign them to something i really need? 
> >> 
> > 
> > The never-used functions are placeholders.  This is an operating system 
> > "feature". 
> > 
> > --trace=keys shows that Leo never receives Alt keys related to menus. 
> > Depending on your OS it may be possible to override this behavior. 
> > 
> > This behavior is similar to Shift-Ctrl-0.  There are, supposedly, ways 
> to 
> > override such keys on Windows, but I have never found a workaround that 
> > survives a reboot. 
> > 
> > Edward 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups 
> > "leo-editor" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an 
> > email to leo-e...@googlegroups.com . 
> > To view this discussion on the web visit 
> > 
> https://groups.google.com/d/msgid/leo-editor/CAMF8tS3i3LV2eiQETsrc1Wc5Fq8R_T4%3DEBkBxoULCwa%3DtbknrQ%40mail.gmail.com.
>  
>
> > 
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/3fa31e58-db93-4cf5-99e0-dbd204837afe%40googlegroups.com.


Re: is there any way to disable alt-letter hotkey for top-level menus?

2019-09-20 Thread gar
AFAIK when using Qt you need to specify those shortcuts by hand with
'&' char - pass addMenu("") to make a menu item with F as
shortcut.
Maybe you do quite the same in your code when create top-level menu?

2019-09-20 17:59 GMT+03:00, Edward K. Ream :
> On Fri, Sep 20, 2019 at 9:47 AM gar  wrote:
>
>> I'd love to use those hotkeys as commands shortcut but they are busy with
>> some never-used functions like menu actions.
>> How can I reassign them to something i really need?
>>
>
> The never-used functions are placeholders.  This is an operating system
> "feature".
>
> --trace=keys shows that Leo never receives Alt keys related to menus.
> Depending on your OS it may be possible to override this behavior.
>
> This behavior is similar to Shift-Ctrl-0.  There are, supposedly, ways to
> override such keys on Windows, but I have never found a workaround that
> survives a reboot.
>
> Edward
>
> --
> You received this message because you are subscribed to the Google Groups
> "leo-editor" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to leo-editor+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/leo-editor/CAMF8tS3i3LV2eiQETsrc1Wc5Fq8R_T4%3DEBkBxoULCwa%3DtbknrQ%40mail.gmail.com.
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAC%2B8SVykepKXVZSnHQTwcDrbASJKKxPOgR4O4USTSXYcrMhrRA%40mail.gmail.com.


Re: is there any way to disable alt-letter hotkey for top-level menus?

2019-09-20 Thread Edward K. Ream
On Fri, Sep 20, 2019 at 9:47 AM gar  wrote:

> I'd love to use those hotkeys as commands shortcut but they are busy with
> some never-used functions like menu actions.
> How can I reassign them to something i really need?
>

The never-used functions are placeholders.  This is an operating system
"feature".

--trace=keys shows that Leo never receives Alt keys related to menus.
Depending on your OS it may be possible to override this behavior.

This behavior is similar to Shift-Ctrl-0.  There are, supposedly, ways to
override such keys on Windows, but I have never found a workaround that
survives a reboot.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS3i3LV2eiQETsrc1Wc5Fq8R_T4%3DEBkBxoULCwa%3DtbknrQ%40mail.gmail.com.


is there any way to disable alt-letter hotkey for top-level menus?

2019-09-20 Thread gar
I'd love to use those hotkeys as commands shortcut but they are busy with 
some never-used functions like menu actions.
How can I reassign them to something i really need?

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/772de325-a129-4889-b5a2-3af64fb51db0%40googlegroups.com.