Re: [Evolution-hackers] single-key keyboard shortcuts



On Tue, 2019-04-09 at 16:15 +0200, Lukas Pirl wrote:
I tried ``.config/evolution/accels`` which works in principle but
introduces the usability flaw that the actions are also triggered
in input fields

        Hi,
what is the evolution version you use, please? Do you have exact steps,
please? I'm pretty sure the search entry is covered by the below
functions. At least the latest 3.32.1 (released only yesterday) should
be fine, I think.

Can we prevent single-key shortcuts to be triggered in input fields
generally?

There's a code which does that, but, well, it's buggy "a bit".

Or can we write a plugin which catches single-key shortcuts
and triggers therein configured actions? If so, how would such a
plugin look like code-wise? Are there similar plugins to get
inspiration from?

No idea how such plugin would look like, neither I'm aware of any
existing plugin of this kind (to add shortcuts). The usual way is to
edit the accels file, as you did.

There's an example module here:
https://wiki.gnome.org/Apps/Evolution/Extensions#Example_Module
with which you can start, if you want to, but I'm afraid I cannot help
you with the accelerators. An EShellWindow has
e_shell_window_get_need_input(), similarly EWebView has
e_web_view_get_need_input(), which is used to not trigger any action
when the widgets need the input.
        Bye,
        Milan



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]