bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fix: XGContextEvent, initialize_keyboard()


From: Georg Fleischmann
Subject: Fix: XGContextEvent, initialize_keyboard()
Date: Fri, 14 Sep 2001 18:57:19 +0200

Hi,

here is a little patch which defines the right Alt key for some European (and  
maybe other) keyboards.
These keyboards use Mode_switch instead of ALT_R for the right Alternate key  
(I have no idea or deeper insight what is the reason for this).
I'm aware that you can set the right Alt key in the default database, but I  
think there should be a default for these keyboards too.

Georg


2001-09-14  Georg Fleischmann

        * xgps/Source/SharedX/XGContextEvent.m
        initialize_keyboard(): if ALT_R is not defined check for Mode_switch


--- xgps/Source/SharedX/XGContextEvent.m.orig   Thu Sep 13 21:57:35 2001
+++ xgps/Source/SharedX/XGContextEvent.m        Thu Sep 13 22:00:22 2001
@@ -1348,7 +1348,11 @@
   _alt_keycodes[1] = default_key_code (display, defaults,
                                       @"GSFirstAlternateKey");
   if (_alt_keycodes[1] == 1)
-    _alt_keycodes[1] = XKeysymToKeycode (display, XK_Alt_R);
+    {
+      _alt_keycodes[1] = XKeysymToKeycode (display, XK_Alt_R);
+      if (_alt_keycodes[1] == 0)
+        _alt_keycodes[1] = XKeysymToKeycode (display, XK_Mode_switch);
+    }
   _alt_keycodes[2] = default_key_code (display, defaults,
                                       @"GSSecondAlternateKey");
   if (_alt_keycodes[2] == 1)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]