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("&File") 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 <[email protected]>:
>>> > On Fri, Sep 20, 2019 at 9:47 AM gar <[email protected]> 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 [email protected].
>>> > 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 '&Window', 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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/leo-editor/884c40f0-5726-46b6-a6a2-d0f3b1bb7068%40googlegroups.com.