Temporarily unbind a keysym in an extension.

Marcel mlautenb at gmail.com
Thu Aug 2 23:16:36 CEST 2018


Ding it with on_key_press and forwarding it to tt_write seems to work. I 
had to extract the relevant attributes and do some calculation to find 
out what combinations of Control, Meta and Shift are active, but it 
looks like it got it.

Thanks again for the help.



On 07/29/2018 07:31 AM, Marc Lehmann wrote:
> On Fri, Jul 27, 2018 at 03:24:12PM +0200, Marcel <mlautenb at gmail.com> wrote:
>> 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 .
> The normal way to do this is by calling the bind_action method, although I am
> not sure it's particularly suitable for frequent redefines.
>
> If you temporarily want to take over the keyboard, you can temporarily
> ->enable your own key_press and/or tt_write handlers, as e.g.
> searchable-scrollback does, and this way override normal processing of
> these events.
>
> Other than that, I don't think there is a way.
>


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5571 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.schmorp.de/pipermail/rxvt-unicode/attachments/20180802/15e44125/attachment.bin>


More information about the rxvt-unicode mailing list