Home > xkb > GTK_IM_MODULE=xim breaks dead keys in GTK and QT applications

GTK_IM_MODULE=xim breaks dead keys in GTK and QT applications

February 12Hits:0
Advertisement

I'm using XIM to have the compose key take into account my ~/.XCompose file (it's the only input method that takes it into account, all the others I tried use hard-coded tables). However, it is breaking the dead keys in GTK and QT application: If in charmap (GTK) I press ^ a, it just prints a. The ^ key is recognized though, as it makes the caret stop blinking while I'm pressing it. In kate (QT), it prints ^a instead (two separate characters).

How can I make dead keys work when using XIM?



Here are the relevant environment variables:

$ env | grep '\(IM\|XMODIFIERS\)' ECORE_IMF_MODULE=xim QT_IM_MODULE=xim GTK_IM_MODULE=xim [email protected]=none 

And here is the output of xev when pressing ^ a:

KeyPress event, serial 37, synthetic NO, window 0x1a00001,     root 0xd9, subw 0x0, time 29204065, (131,637), root:(135,656),     state 0x10, keycode 34 (keysym 0xfe52, dead_circumflex), same_screen YES,     XLookupString gives 1 bytes: (5e) "^"     XmbLookupString gives 0 bytes:      XFilterEvent returns: False  KeyRelease event, serial 37, synthetic NO, window 0x1a00001,     root 0xd9, subw 0x0, time 29204135, (131,637), root:(135,656),     state 0x10, keycode 34 (keysym 0xfe52, dead_circumflex), same_screen YES,     XLookupString gives 1 bytes: (5e) "^"     XFilterEvent returns: False  KeyPress event, serial 37, synthetic NO, window 0x1a00001,     root 0xd9, subw 0x0, time 29204545, (131,637), root:(135,656),     state 0x10, keycode 24 (keysym 0x61, a), same_screen YES,     XLookupString gives 1 bytes: (61) "a"     XmbLookupString gives 1 bytes: (61) "a"     XFilterEvent returns: False  KeyRelease event, serial 37, synthetic NO, window 0x1a00001,     root 0xd9, subw 0x0, time 29204614, (131,637), root:(135,656),     state 0x10, keycode 24 (keysym 0x61, a), same_screen YES,     XLookupString gives 1 bytes: (61) "a"     XFilterEvent returns: False 

Related Articles

  • GTK_IM_MODULE=xim breaks dead keys in GTK and QT applicationsFebruary 12

    I'm using XIM to have the compose key take into account my ~/.XCompose file (it's the only input method that takes it into account, all the others I tried use hard-coded tables). However, it is breaking the dead keys in GTK and QT application: If in

  • Insert both characters if a dead key combination is not recognized (e.g. 'a → á, 'b → 'b)August 6

    When I use any variation of English, US international (with dead keys,altGr dead keys or alternative) on my Linux Mint machine I always encounter this behaviour. When I press one of these keys: ' " and then follow them with a 'non-accentable' charact

  • Replace dead keys of default US keyboard layout on Lion?October 21

    I've been trying to create a new keyboard layout using Ukelele on Lion. I want to replace some dead keys combination like option+e to option+'. Ukelele seems to be the right tool for it. Problem is, since Lion, it doesn't support the "New from Curren

  • Typing an acute e when dead keys are eliminated in keyboard layout?July 26

    I've disabled dead keys on my Swedish keyboard layout to more easily type characters such as ~,´ and `. How do I temporarily enable the old behavior of these keys? Now I can't type an e with an acute character, for instance. Do I need to switch keybo

  • Chrome not accepting US international with dead keys keyboard 14.04June 4

    Using 14.04 with keyboard selected as 'US international with dead keys' as my keyboard layout option, (so that I may use characters from other languages) and the system accepts text input as you would expect. Chrome however fails to recognise what ke

  • Dead keys maps missing in certain programs onlyNovember 2

    I cannot use ^ with certain programs. I'm working in KDE on OpenSUSE 13.1 64b. ^ works as a dead key in Konsole, Firefox, Chrome, Gvim. ^ has no effect (pressing ^ then a just inserts a) in Xterm, Emacs, Opera, Libreoffice. My /etc/X11/xorg.conf.d/90

  • Dead keys on Firefox Kubuntu 15.04May 1

    I use the GR-el version of the latest Firefox on Kubuntu 15.04. After the latest (2015-May-1) update, I can't have dead keys produce accents for (Greek GR-el / UTF-8). I can bypass this problem by running Firefox from the console with sudo. Would the

  • How to get Unicode values of dead keys from mediumraw console keyboardJanuary 6

    In an application that runs in a frame buffer, I read keys from /dev/tty after having set it to mediumraw mode using int fd = open("/dev/tty", O_RDWR); ... ioctl(fd, KDSKBMODE, K_MEDIUMRAW); In order to get at the unicode values of the keys repr

  • Dead keys not working in Emacs 23 in MS WindowsOctober 25

    In any program I type á pressing the ´ + a (in sequence). When I do it in emacs I only get a. The dead key only acts when I type an space. For example, if I type: ´ + a + SPC I get: a´ when I expect: á Any ideas on why this may be happening? It only

  • How do I fix my dead keys in Snow Leopard?February 6

    My problem is whenever I type quotes on Snow Leopard 10.6.4, it waits for the next character typed, and turns it into another character instead of just typing quotes. example: [shift] + " a results in ä [shift] + " u results in ü I don't want th

  • How to make ^ and ` non-dead-keys on Windows 7 with German keyboard layout

    How to make ^ and ` non-dead-keys on Windows 7 with German keyboard layoutMay 6

    In the default german keyboard layout ^ and backtick/forwardtick are deadkeys. However, as a programmer (who has an aversion against french anyway ;)) I usually do not need to write áccênts but the characters itself. Being required to press the key t

  • Using e-acute but not s-acute (on Keyboard USA International w/ dead keys)

    Using e-acute but not s-acute (on Keyboard USA International w/ dead keys)May 9

    I want to be able to use ' + e to get the letter é but being able to type ' + s to get the sequence 's. Default my Ubuntu 11.04 came with the keyboard layout "USA International (with dead keys)". Which creates é and ś. When I set it up to use no

  • Dead keys not working in Java Swing applicationsMay 11

    I'm currently using Ubuntu 10.10 and Netbeans 7.0 and I can't type accented letters with dead keys any more. It's not a version specific problem seems it's related with Swing since I've got the same problem with older version of Netbeans and OS... Wh

  • Pressing dead keys twiceJune 20

    I've recently switched from Windows to Ubuntu 11.04, and a difference that bugs me a bit is, when a dead key (such as ^ or ´) is pressed twice, the behavior differs in the two OS'es. On Windows, the first press is dead, but the second press gives you

  • Dead keys and non-determenistic "plain-mode"July 1

    Many times when I want to type just an `, ~ or other dead key, it doesn't work when I press the dead key followed by space. It often works, but often not. I have been unable to find any rules for when this happens. I thus often press the dead key twi

  • What can I do if my dasKeyboard has dead keys?July 31

    I have an out-of-warranty dasKeyboard Professional (with Cherry MX Blue key switches). I acquired this keyboard as a new replacement in a warranty keyboard swap. Their warranty service is very slow and they do not have an excuse. Recently the newer k

  • RDP from OSX to W2K3 (and XP): No dead-keys anymoreAugust 9

    This one is driving me nuts. Several Macs, mini, MacBook Pro and iMac's, currently running Lion and having de MS RDP client for OSX (latest version) installed. All do RDP sessions to several XP and W2K3(R2) boxes. Works fine, have been doing so for o

  • What exactly is meant by "Eliminate dead keys"?August 10

    When I choose my country (Norway) I get two options: Norway Norway - Eliminate dead keys What is meant by "Eliminate dead keys"? What does that do? Which one should I choose? --------------Solutions------------- There are keys like the hat (^) o

  • Dead keys on 4 year old aluminum keyboard: How do I correct this?December 26

    I have two dead keys on my Apple thin aluminum keyboard. My AppleCare has expired, I'm in the fourth year. I changed the mouse, no help. I logged onto Main IP, Charter, and used their email rather than my current Gmail. No help. I checked Keyboard, M

  • Dvorak International Dead Keys in Windows?February 10

    I need umlauts with International Dvorak. Is this possible? (I googled I found out that one could use a hack to edit the layouts but seems like I am re-inventing the wheel) Is it better to use some terminal emulation that would fix the issue or how c

Copyright (C) 2018 ceus-now.com, All Rights Reserved. webmaster#ceus-now.com 14 q. 0.761 s.