Marcel
2018-07-27 13:24:12 UTC
Hi,
I am developing a perl extension and have the use case where I would
like to enable/disable some key bindings. For instance, there might be a
binding of Control-l which I would like to enable/disable with another
binding, e.g. Meta-o .
That is, the user could trigger Meta-o and now be able to use Control-l.
Or trigger Meta-o again to disable the binding to Control-l which then
would normaly clear the screen in a terminal.
I tried on_user_command() or on_action(). But so far I have not been
successful. Is this possible? How would I be able to achieve this?
Cheers,
Marcel
I am developing a perl extension and have the use case where I would
like to enable/disable some key bindings. For instance, there might be a
binding of Control-l which I would like to enable/disable with another
binding, e.g. Meta-o .
That is, the user could trigger Meta-o and now be able to use Control-l.
Or trigger Meta-o again to disable the binding to Control-l which then
would normaly clear the screen in a terminal.
I tried on_user_command() or on_action(). But so far I have not been
successful. Is this possible? How would I be able to achieve this?
Cheers,
Marcel