Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


Search this Thread
Old 10-04-2007, 11:08 AM   #1
LQ Newbie
Registered: Sep 2007
Posts: 10

Rep: Reputation: 0
XKeyEvent and the mode_switch (AltGr) modifier

Hello together,

I am sending key events to an application using XSendEvent.
I creating an event like this as described on this page:

It all works, except if I want to set the mode_switch (it's called AltGr on my keyboard) modifier state. xmodmap tells me, that Mode_switch is placed on mod5. So I do something like this:
This works for all modifier except for Mode_switch .

What else do I need to do?
Old 10-04-2007, 01:35 PM   #2
LQ Newbie
Registered: Sep 2007
Posts: 10

Original Poster
Rep: Reputation: 0
I discovered, that the error was somewhere else. My AltGR key produces the XK_ISO_Level3_Shift keysym. It works now. Thanks for reading!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Using winkey et al as modifier / compose keys noranthon Linux - Newbie 6 03-15-2007 11:14 AM
torrent metadata (files) modifier abs Linux - General 0 04-17-2005 01:35 AM
keyboard layout (alternative key with mode_switch) super-momo Debian 2 02-12-2005 11:22 PM
xfce4 modifier keys question acidream Linux - General 3 10-11-2004 03:17 PM
Using modifier keys for special characters kpfeiffer Linux - Newbie 5 10-19-2002 04:25 AM

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

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