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

Reply via email to