LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-22-2012, 03:23 PM   #1
philanc
Member
 
Registered: Jan 2011
Posts: 308

Rep: Reputation: 273Reputation: 273Reputation: 273
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
 
Old 09-22-2012, 05:30 PM   #2
philanc
Member
 
Registered: Jan 2011
Posts: 308

Original Poster
Rep: Reputation: 273Reputation: 273Reputation: 273
Quote:
Originally Posted by philanc View Post
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Swapping PgUp and Shift Keys in Fedora 14 BarbieQ1 Linux - Laptop and Netbook 0 07-31-2011 11:05 PM
Remapping shift&ctrl keys kills key repetition nitro2k01 Linux - Desktop 2 02-13-2010 12:56 PM
Inhibit GTK verbose messages when running GTK/Gnome applications from terminal d1s4st3r Linux - Software 1 11-10-2009 10:33 PM
Shift-arrow and Alt-arrow keys don't work in xterm Aviv Hurvitz Linux - General 2 09-30-2006 03:43 PM
Shift+keypad keys... asqueella Linux - Newbie 3 04-19-2004 11:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration