Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Are shift function keys possible under X.org ?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
TheLexx
Tux's lil' helper
Tux's lil' helper


Joined: 04 Dec 2005
Posts: 137
Location: Austin Tx

PostPosted: Thu Dec 14, 2006 9:45 pm    Post subject: Are shift function keys possible under X.org ? Reply with quote

I have been running has XFree86 version 3.3.6 on an older computer that I have been using for many years. On that computer I have a personalized application that has macros assigned to Function keys, CTRL-Function keys, Shift-Function keys and CTRL-Shift-Function keys. The problem I am having is that my new Gentoo computer uses Xorg 6.8.2 and it seams incapable of sending shift function signals to the underlying application.

When I run the program on my new Gentoo computer the CTRL-function keys are detected correctly, but the shifted function keys act like normal function keys. If the application is executed ion the new computer with the display exported to the old (XFree86 version 3.3.6) computer, the shifted function keys work fine.

Is there I way that I can get X to send shift function keys to the application? One idea that I thought about was to use xmodmap to send fn13 for shift fn1, but so far I have had no luck. I was also thinking about using the windows(super) key in combination with the function keys, but that did not work either. Any ideas?
Back to top
View user's profile Send private message
timeBandit
Bodhisattva
Bodhisattva


Joined: 31 Dec 2004
Posts: 2719
Location: here, there or in transit

PostPosted: Fri Dec 15, 2006 3:18 am    Post subject: Reply with quote

Shift+Fn keys work perfectly in Xorg 7.1, and I don't recall ever having this problem with prior versions. Which keyboard layout are you using? Have you set any unusual layout options?

Launch xev in a terminal to check whether your keys are creating reasonable events. Here is what xev reports when I press F1:
Code:
KeyPress event, serial 28, synthetic NO, window 0x3000001,
    root 0x91, subw 0x0, time 2216057424, (130,112), root:(283,1329),
    state 0x0, keycode 67 (keysym 0xffbe, F1), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

KeyRelease event, serial 28, synthetic NO, window 0x3000001,
    root 0x91, subw 0x0, time 2216057548, (130,112), root:(283,1329),
    state 0x0, keycode 67 (keysym 0xffbe, F1), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False

And here is what it reports when I press Shift+F1:
Code:
KeyPress event, serial 28, synthetic NO, window 0x3000001,
    root 0x91, subw 0x0, time 2216058104, (130,112), root:(283,1329),
    state 0x0, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

KeyPress event, serial 28, synthetic NO, window 0x3000001,
    root 0x91, subw 0x0, time 2216058443, (130,112), root:(283,1329),
    state 0x1, keycode 67 (keysym 0xffbe, F1), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

KeyRelease event, serial 28, synthetic NO, window 0x3000001,
    root 0x91, subw 0x0, time 2216058554, (130,112), root:(283,1329),
    state 0x1, keycode 67 (keysym 0xffbe, F1), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False

KeyRelease event, serial 28, synthetic NO, window 0x3000001,
    root 0x91, subw 0x0, time 2216058695, (130,112), root:(283,1329),
    state 0x1, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False

Note change in the value of state in those last three events. The 0x1 bit indicates a Shift key was depressed when the event was generated.
_________________
Plants are pithy, brooks tend to babble--I'm content to lie between them.
Super-short f.g.o checklist: Search first, strip comments, mark solved, help others.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum