Suppress control key combinations unless explicitly bound. - sam - An updated version of the sam text editor.
 (HTM) git clone git://vernunftzentrum.de/sam.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) LICENSE
       ---
 (DIR) commit 793bd1a5d7f9deb74fa125b20a7f38710461ec69
 (DIR) parent b5897f5e16525cd8f6d05eb4443249a620c5784a
 (HTM) Author: Rob King <jking@deadpixi.com>
       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(-)
       ---
 (DIR) 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:
 (DIR) 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},