Commits

Vin Shelton  committed af4d024

Back out shifted function key hack

  • Participants
  • Parent commits 13d13fa

Comments (0)

Files changed (2)

File src/ChangeLog

-2013-04-12  Vin Shelton  <acs@xemacs.org>
-
-	* event-Xt.c (x_event_to_emacs_event): Allow XEmacs to recognize
-	shifted function keys directly.  This is likely an XFree bug.
-	Patch by Sean MacLennan.
-
 2012-07-12  Vin Shelton  <acs@xemacs.org>
 
 	* glyphs-eimage.c: Fix this so it compiles with libpng-1.5.10.

File src/event-Xt.c

 		KeySym bot = XLookupKeysym (ev, Mode_switch_p ? 2 : 0);
 		KeySym top = XLookupKeysym (ev, Mode_switch_p ? 3 : 1);
 		if (top && bot && top != bot)
-		    /* Look directly for shifted function keycodes */
-		    switch(top) {
-		    case 0x1008fe01:
-		    case 0x1008fe02:
-		    case 0x1008fe03:
-		    case 0x1008fe04:
-		    case 0x1008fe05:
-		    case 0x1008fe06:
-		    case 0x1008fe07:
-		    case 0x1008fe08:
-		    case 0x1008fe09:
-		    case 0x1008fe0a:
-		    case 0x1008fe0b:
-		    case 0x1008fe0c:
-			break;
-		    default:
-			modifiers &= ~XEMACS_MOD_SHIFT;
-			break;
-		    }
+		  modifiers &= ~XEMACS_MOD_SHIFT;
 	      }
 	    emacs_event->event_type	     = key_press_event;
 	    emacs_event->timestamp	     = ev->time;