LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Shift-Fn keys not recognized with GTK applications (https://www.linuxquestions.org/questions/slackware-14/shift-fn-keys-not-recognized-with-gtk-applications-4175428569/)

philanc 09-22-2012 03:23 PM

Shift-Fn keys not recognized with GTK applications
 
Shift-Fn keys are not recognized with some applications in my Slackware current (RC5)

For example:
- Shift-F3 (find-previous) works as F3 (find-next) in some (GTK) editors (leafpad, SciTE) -- but it works correctly in Firefox

- In Terminal, define a shortcut F5 for 'show-toolbar' and Shift-F5 for 'show-menu-bar'. Then both F5 and Shift-F5 execute 'show-toolbar'.

I checked with xev, or some console or xlib apps (eg. mc) - the Shift-Fn keys are correctly recognized. Could it be a GTK problem?

It used to work correctly in 13.37.

I didn't find anything here, but after a bit of googling, I found this:
https://bugs.launchpad.net/ubuntu/+s...g/+bug/1031062

It points to a patch at https://bugs.archlinux.org/task/26414 - I have no idea if it could apply to -current.

Has anyone experienced the same issue in -current?

Phil

philanc 09-22-2012 05:30 PM

Quote:

Originally Posted by philanc (Post 4786728)
Shift-Fn keys are not recognized with some applications in my Slackware current (RC5)

I found more info at https://bugs.freedesktop.org/show_bug.cgi?id=45008 (see comment #25)

Apparently, just adding the two lines below to /etc/X11/xkb/types/pc fixes the issue:

Code:

--- pc.orig    2012-06-13 15:47:54.000000000 -0400
+++ pc  2012-09-22 18:23:32.000000000 -0400
@@ -65,6 +65,8 @@
        map[LevelThree] = Level3;
        map[Shift+LevelThree] = Level4;
        map[Control+Alt] = Level5;
+        preserve[Shift] = Shift;
+        preserve[Shift+LevelThree] = Shift;
        level_name[Level1] = "Base";
        level_name[Level2] = "Shift";
        level_name[Level3] = "Alt Base";

HTH

Phil


All times are GMT -5. The time now is 03:07 AM.