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?
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 <edre...@gmail.com>:
> On Fri, Sep 20, 2019 at 9:47 AM gar <gar...@gmail.com> 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.
You can try a custom menu.
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
But if I remove the '&' from '&Window', save and restart ... Alt-W still brings it up.
The & is an accelerator, not a binding.
y-e-s ... but then how is what Chris George suggesting supposed to work?
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.
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.
Excuse me, you all went into deep tech details and I lost the clue.What does that mean from the user side?
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.
Examining the key trace information, Leo correctly identifies Ctrl, Shift,
Meta, and a and treats it as a chord. The same holds true for simpler
modifications like Meta+a and Shift+Meta+a etc.
show-bindings has evidence of "Meta" being a thing in the past. I read
through the google groups and didn't discover anything directly related to
eliminating "Meta" as a modifier.
The following do not work. All cause Leo to spit out the warning to the
terminal at startup.
Meta+a
Ctrl+Meta+a
Ctrl+Shift+Meta+a
Alt+Meta+a
etc.
All are identified correctly according to --trace=keys.
Am I missing something?
Leo 6.1-devel, devel branch, build 53cf6d1bb1
2019-09-23 10:35:13 -0500
Python 3.6.8, PyQt version 5.12.3
linux
Chris
On Monday, September 23, 2019 at 8:49:53 AM UTC-7, Edward K. Ream wrote:
>
> On Mon, Sep 23, 2019 at 1:43 AM gar <gar...@gmail.com <javascript:>>
> 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
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.
--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/CAMF8tS3BFqPPrFeFAN2ONKrXOFpO82A%3Dt%3D8cYXvg0mUKLBCQEA%40mail.gmail.com.
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?
Does that mean that if one remove accelerators from menu item's string - Qt wouldn't be interested?
Vitalije, thanks a lot!I encountered another interesting and odd behavior.When language different from english is enabled - all <alt>-based shortcuts dont work while <ctrl>-ones do.This behaves the same both on win and lin.Why can this be so?
--
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+...@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.
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?