ref: 4ac3a0224ed9d54818f858fba69c8e94f38f2c12
dir: /9front/f6228aa02e4fd3f7f5d1d2fa8b3a1e03afd2299a.patch/
From: Romano <[email protected]> Date: Tue, 13 Aug 2024 05:36:36 +0000 Subject: [PATCH] riow: change shift+q → del as hotkey for deleting current window this helps particularly for OS X drawterm, since shift+q is already set for logging out. delete also clicked more with me since del is used for stopping a process. --- diff 2235c398fa9e7b48e0c84cda05c6994a14736e55 f6228aa02e4fd3f7f5d1d2fa8b3a1e03afd2299a --- a/sys/man/1/riow +++ b/sys/man/1/riow @@ -72,7 +72,7 @@ Spawn a new .IR window (1). .TP -.B Kmod4+shift+q +.B Kmod4+del Delete the current window. .TP .B Kmod4+h/j/k/l --- a/sys/src/cmd/riow.c +++ b/sys/src/cmd/riow.c @@ -368,7 +368,7 @@ cycleaction(0, -1); return 0; } - if(r == 'Q' && mod == (Mmod4|Mshift)){ + if(r == 0x7f && mod == Mmod4){ delete(); return 0; }