From 5808c71df975552545a381615165a9b89f3b3175 Mon Sep 17 00:00:00 2001 From: WanderingPenwing Date: Sun, 11 Aug 2024 03:24:40 +0200 Subject: [PATCH] proper keyboard selection --- config.h | 2 +- st | Bin 105776 -> 105776 bytes st.c | 4 ---- x.o | Bin 77336 -> 77336 bytes 4 files changed, 1 insertion(+), 5 deletions(-) diff --git a/config.h b/config.h index 906d3ce..0f8a6c3 100644 --- a/config.h +++ b/config.h @@ -200,7 +200,7 @@ static Shortcut shortcuts[] = { { TERMMOD, XK_V, clippaste, {.i = 0} }, { TERMMOD, XK_Y, selpaste, {.i = 0} }, { TERMMOD, XK_Num_Lock, numlock, {.i = 0} }, - { TERMMOD, XK_Escape, keyboard_select,{ 0 } }, + { ShiftMask, XK_Escape, keyboard_select,{ 0 } }, }; diff --git a/st b/st index 025aec02bde0ae80bbf19e1fc4d73d57afa41d01..8a7135c009f7a8e81e172af98e655a2daf9ec6c7 100755 GIT binary patch delta 19 bcmdn6i*3U$wuUW?4l#_3+Z|&V-#Y*RPQ3>> delta 19 bcmdn6i*3U$wuUW?4l#_Z+Z|&V-#Y*RPT2=M diff --git a/st.c b/st.c index 7db0954..064f78c 100644 --- a/st.c +++ b/st.c @@ -2934,10 +2934,6 @@ int trt_kbdselect(KeySym ksym, char *buf, int len) { term.c.y = cu.y >> 1; select_or_drawcursor(selectsearch_mode, type); break; - case XK_C : - Arg *dummy_arg = {.i = 0}; - clipcopy(dummy_arg); - break; default : if ( ksym >= XK_0 && ksym <= XK_9 ) { /* 0-9 keyboard */ quant = (quant * 10) + (ksym ^ XK_0); diff --git a/x.o b/x.o index 24a49a40acd9d3c9d4a5233f41297b9831315977..e98ec175c868a37da49517dce404275435d71a04 100644 GIT binary patch delta 18 acmbPnhh@ecmJJQXlM{+KHg^