proper keyboard selection

This commit is contained in:
WanderingPenwing 2024-08-11 03:24:40 +02:00
parent 09cbf6d8ad
commit 5808c71df9
4 changed files with 1 additions and 5 deletions

View file

@ -200,7 +200,7 @@ static Shortcut shortcuts[] = {
{ TERMMOD, XK_V, clippaste, {.i = 0} }, { TERMMOD, XK_V, clippaste, {.i = 0} },
{ TERMMOD, XK_Y, selpaste, {.i = 0} }, { TERMMOD, XK_Y, selpaste, {.i = 0} },
{ TERMMOD, XK_Num_Lock, numlock, {.i = 0} }, { TERMMOD, XK_Num_Lock, numlock, {.i = 0} },
{ TERMMOD, XK_Escape, keyboard_select,{ 0 } }, { ShiftMask, XK_Escape, keyboard_select,{ 0 } },
}; };

BIN
st

Binary file not shown.

4
st.c
View file

@ -2934,10 +2934,6 @@ int trt_kbdselect(KeySym ksym, char *buf, int len) {
term.c.y = cu.y >> 1; term.c.y = cu.y >> 1;
select_or_drawcursor(selectsearch_mode, type); select_or_drawcursor(selectsearch_mode, type);
break; break;
case XK_C :
Arg *dummy_arg = {.i = 0};
clipcopy(dummy_arg);
break;
default : default :
if ( ksym >= XK_0 && ksym <= XK_9 ) { /* 0-9 keyboard */ if ( ksym >= XK_0 && ksym <= XK_9 ) { /* 0-9 keyboard */
quant = (quant * 10) + (ksym ^ XK_0); quant = (quant * 10) + (ksym ^ XK_0);

BIN
x.o

Binary file not shown.