Introduction
Introduction Statistics Contact Development Disclaimer Help
Suppress control key combinations unless explicitly bound. - sam - An updated v…
git clone git://vernunftzentrum.de/sam.git
Log
Files
Refs
LICENSE
---
commit 793bd1a5d7f9deb74fa125b20a7f38710461ec69
parent b5897f5e16525cd8f6d05eb4443249a620c5784a
Author: Rob King <[email protected]>
Date: Tue, 13 Sep 2016 11:07:56 -0500
Suppress control key combinations unless explicitly bound.
Diffstat:
libXg/gwin.c | 2 +-
samterm/samrc.c | 3 +++
2 files changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/libXg/gwin.c b/libXg/gwin.c
@@ -267,7 +267,7 @@ Keyaction(Widget w, XEvent *e, String *p, Cardinal *np)
KeySym l = NoSymbol;
XConvertCase(k, &l, &u);
- if (l == m->s){
+ if (l == m->s || m->s == XK_VoidSymbol){
if (m->m == 0 || (m->m & ~e->xkey.state) == 0){
switch (m->c){
case Cnone:
diff --git a/samterm/samrc.c b/samterm/samrc.c
@@ -108,6 +108,9 @@ struct Defaultbinding{
};
static Defaultbinding defaultbindings[] ={
+ /* Suppress control key combinations unless explicitly bound. */
+ {ControlMask, XK_VoidSymbol, Kcommand, Cnone},
+
/* Motion commands following the WordStar diamond. */
{ControlMask, XK_e, Kcommand, Clineup},
{ControlMask, XK_x, Kcommand, Clinedown},
You are viewing proxied material from vernunftzentrum.de. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.