~ubuntu-branches/ubuntu/precise/xterm/precise-updates

« back to all changes in this revision

Viewing changes to input.c

  • Committer: Bazaar Package Importer
  • Author(s): Lorenzo De Liso
  • Date: 2011-02-12 15:58:09 UTC
  • mfrom: (1.5.3 upstream)
  • mto: This revision was merged to the branch mainline in revision 33.
  • Revision ID: james.westby@ubuntu.com-20110212155809-vxve6aexyvm7aoh3
Tags: upstream-268
ImportĀ upstreamĀ versionĀ 268

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $XTermId: input.c,v 1.326 2010/06/15 22:41:09 tom Exp $ */
 
1
/* $XTermId: input.c,v 1.327 2011/02/09 10:15:07 tom Exp $ */
2
2
 
3
3
/*
4
 
 * Copyright 1999-2009,2010 by Thomas E. Dickey
 
4
 * Copyright 1999-2010,2011 by Thomas E. Dickey
5
5
 *
6
6
 *                         All Rights Reserved
7
7
 *
486
486
                UIntClr(result, ControlMask);
487
487
            }
488
488
        } else if (kd->keysym == XK_Tab || kd->keysym == XK_Return) {
489
 
            ;
 
489
            /* EMPTY */ ;
490
490
        } else if (IsControlAlias(kd)) {
491
491
            /* Things like "^_" work here... */
492
492
            if (Masked(result, (ControlMask | ShiftMask)) == 0) {
1989
1989
                    for (l = 0; l < keysyms_per_keycode; ++l) {
1990
1990
                        keysym = XKeycodeToKeysym(dpy, code, l);
1991
1991
                        if (keysym == NoSymbol) {
1992
 
                            ;
 
1992
                            /* EMPTY */ ;
1993
1993
                        } else if (keysym == XK_Num_Lock) {
1994
1994
                            SaveMask(num_lock);
1995
1995
                        } else if (keysym == XK_Alt_L || keysym == XK_Alt_R) {
1999
1999
                        } else if (mask == ShiftMask
2000
2000
                                   && (keysym == XK_Shift_L
2001
2001
                                       || keysym == XK_Shift_R)) {
2002
 
                            ;   /* ignore */
 
2002
                            /* EMPTY */ ;
2003
2003
                        } else if (mask == ControlMask
2004
2004
                                   && (keysym == XK_Control_L
2005
2005
                                       || keysym == XK_Control_R)) {
2006
 
                            ;   /* ignore */
 
2006
                            /* EMPTY */ ;
2007
2007
                        } else if (mask == LockMask
2008
2008
                                   && (keysym == XK_Caps_Lock)) {
2009
 
                            ;   /* ignore */
 
2009
                            /* EMPTY */ ;
2010
2010
                        } else if (keysym == XK_Mode_switch
2011
2011
#ifdef XK_ISO_Level3_Shift
2012
2012
                                   || keysym == XK_ISO_Level3_Shift