Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Xfce keyboard ESC key not working
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Seong-Kook Shin
n00b
n00b


Joined: 28 Jul 2009
Posts: 4

PostPosted: Mon Aug 15, 2011 3:57 am    Post subject: Xfce keyboard ESC key not working Reply with quote

Hi,

I don't know whether my problem is Xfce4-related, or xorg-related or xkb-related. :(

I used Gnome 2.x with following setxkbmap setting in my Gentoo Dell Latitude D800:
Code:

$ setxkbmap -v
Trying to build keymap using the following components:
keycodes:   xfree86+aliases(qwerty)
types:      complete
compat:     complete
symbols:    pc+us+inet(pc105)+ctrl(nocaps)+terminate(ctrl_alt_bksp)
geometry:   pc(pc105)


And it works fine. I switched to Xfce and set the keyboard configuration like above and suddenly, my ESC does not work.
The output of xev(1) looks strange:

Code:

$ xev
...
FocusOut event, serial 34, synthetic NO, window 0x2a00001,
    mode NotifyGrab, detail NotifyAncestor

FocusIn event, serial 34, synthetic NO, window 0x2a00001,
    mode NotifyUngrab, detail NotifyAncestor

KeymapNotify event, serial 34, synthetic NO, window 0x0,
    keys:  2   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   
...


Normally, xev(1) generate KeyPress..KeyRelease event for all keys, but suddenly, my ESC key does not generate it.
In Gnome, the xev(1) output is:

Code:

KeyPress event, serial 33, synthetic NO, window 0x2000001,
    root 0x18f, subw 0x0, time 10243344, (389,325), root:(393,371),
    state 0x0, keycode 9 (keysym 0xff1b, Escape), same_screen YES,
    XLookupString gives 1 bytes: (1b) "^["
    XmbLookupString gives 1 bytes: (1b) "^["
    XFilterEvent returns: False

KeyRelease event, serial 33, synthetic NO, window 0x2000001,
    root 0x18f, subw 0x0, time 10243468, (389,325), root:(393,371),
    state 0x0, keycode 9 (keysym 0xff1b, Escape), same_screen YES,
    XLookupString gives 1 bytes: (1b) "^["
    XFilterEvent returns: False


I don't know what is wrong here. Since setxkbmap shows the same output on Gnome/Xfce4.

To make things clear, I re-emerged xorg-server, udev, xf86-input-keyboard/mouse just in case, but nothing is changed. :(

Since there is no KeyPress event for my ESC key, I cannot use xmodmap either.

Is there any solution for this??[/code]
Back to top
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2370
Location: Omnipresent

PostPosted: Mon Aug 15, 2011 4:35 am    Post subject: Reply with quote

It looks like something is grabbing your "Esc" key event -- check that you don't have a hotkey mapping in your XFCE keyboard settings.
_________________
If you don't have backups, you deserve to lose your data -- read about my simple backup scheme.
Back to top
View user's profile Send private message
Seong-Kook Shin
n00b
n00b


Joined: 28 Jul 2009
Posts: 4

PostPosted: Mon Aug 15, 2011 5:00 am    Post subject: Reply with quote

Hypnos wrote:
It looks like something is grabbing your "Esc" key event -- check that you don't have a hotkey mapping in your XFCE keyboard settings.

You mean, "Menu -> Settings -> Keyboard -> Application Shortcuts"?

I checked there, but I found nothing about <escape>. :(
Back to top
View user's profile Send private message
Seong-Kook Shin
n00b
n00b


Joined: 28 Jul 2009
Posts: 4

PostPosted: Mon Aug 15, 2011 5:10 am    Post subject: Reply with quote

Seong-Kook Shin wrote:
Hypnos wrote:
It looks like something is grabbing your "Esc" key event -- check that you don't have a hotkey mapping in your XFCE keyboard settings.

You mean, "Menu -> Settings -> Keyboard -> Application Shortcuts"?

I checked there, but I found nothing about <escape>. :(


Finally, I solved it!

The reason is the item "xfdesktop --menu <Control>Escape" in [Application Shortcuts].

I don't know why, but "<Control>Escape" shortcut (wrongly) eat-up also "Escape" key event.

Removing that item solves the problem anyway.

Thank you!!!

P.S I'll file a bug report to xfce bugzilla.
Back to top
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2370
Location: Omnipresent

PostPosted: Mon Aug 15, 2011 5:32 am    Post subject: Reply with quote

Great! Please add "[SOLVED]" to the thread title by editing the first post.
_________________
If you don't have backups, you deserve to lose your data -- read about my simple backup scheme.
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