[dev] [st] Unable to map Ctrl+$NUMBER

From: Eric Pruitt <eric.pruitt_AT_gmail.com>
Date: Mon, 9 Oct 2017 10:32:02 -0700

I would like to create custom mappings for pressing Control with a
digit. I added this binding for Ctrl+1 to the top of the "key" array:

    /* keysm mask string appkey appcursor crlf */
    { XK_1, ControlMask, "\033OP", 0, 0, 0 },

When I press Ctrl+1, a "1" is printed instead of the escape sequence. I
added a similar mapping to the "shortcuts" array:

    /* mask mask string argument */
    { ControlMask, ControlMask, iso14755, {.i = 0} }

When I press Ctrl+1 after making that change, the iso14755 function is
executed as expected. I looked at the code that's responsible for
handling key presses in both arrays, but it's not clear to me exactly
what the problem is. Is there something wrong with the way I'm trying to
map Ctrl+1 or is this a bug of some sort?

Thanks,
Eric
Received on Mon Oct 09 2017 - 19:32:02 CEST

This archive was generated by hypermail 2.3.0 : Mon Oct 09 2017 - 19:36:29 CEST