What program causes me to see a preview of the single quote I´m about to type? (layout = us intl with dead keys)
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
What program causes me to see a preview of the single quote I´m about to type? (layout = us intl with dead keys)
When I type a single quote like this ´ I see a preview of that character when I type it (I press ´ to type it and then space to make it appear. If I did ´+e it would create an é)
If I understand it well: the X window system itself (keyboard layout manager) will handle it. https://unix.stackexchange.com/quest...tionality-in-x
But probably you need to explain better what are you looking for.
I don't think what you want is possible at all. When I type a dead key, the cursor doesn't move, and there's no visible feedback until I press another key. Only if the second key can be combined with the dead accent, the composite character is printed. Otherwise either the dead accent itself is printed, or the system waits for another key press if stacking two accents is possible.
This is how dead keys are supposed to work.
Moreover, the Compose key also works this way: the composite character appears only after all required keystrokes, but the keystrokes themselves are not echoed.
The behaviour has changed recently in many gui applications like Firefox, Geany etc, to behave like OP describes it.
These two only have gtk3 as a common dependency (on my system).
I cannot see the new behaviour in any gtk2 apps.
So, the change in behaviour could have occured in GTK3 itself or one of the packages it depends on...
Ah ondoho, you're right. Strangely enough, I cannot reproduce it in Firefox 78.9.0esr, but in many other GTK3 applications. I also found this post on Reddit. I don't like the patch suggested there though. The observed Firefox behavior and GTK function names like gtk_im_context_set_use_preedit let me suspect that this can be changed programmatically.
An input method may consume multiple key events in sequence and finally output the composed result. This is called preediting, and an input method may provide feedback about this process by displaying the intermediate composition states as preedit text. For instance, the default GTK input method implements the input of arbitrary Unicode code points by holding down the Control and Shift keys and then typing “U” followed by the hexadecimal digits of the code point. When releasing the Control and Shift keys, preediting ends and the character is inserted as text. Ctrl+Shift+u20AC for example results in the € sign
Interestingly, Ctrl+Shift+u... works as described in Firefox, too.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.