How to disable Ctrl+Shift+U?

37,783

Solution 1

Found a way to unbind it on Ubuntu 13.10.

Go to Language Support on System Settings and change the Keyboard input method system to none

Then restart the system or just log out and log in.

Solution 2

Problem

The problem is that with the "Ibus" input method, "Ctrl-shift-u" is by default configured to the "Unicode Code Point" shortcut. You can try this: Type ctrl-shift-u, then an (underlined) u appears. If you then type a unicode code point number in hex (e.g. 21, the ASCII/unicode CP for !) and press enter, it is replaced with the corresponding character.

Example of ctr-shift-u

Solution

This shortcut can be changed or disabled using the ibus-setup utility:

  1. Run ibus-setup from the terminal (or open IBus Preferences).
  2. Go to “Emoji”.
  3. Next to “Unicode code point:”, click on the three dots (i.e. ...).
  4. In the dialog, click “Delete”, then “OK”.
  5. Close the IBus Preferences window.

Ibus preferences window

Solution 3

Ubuntu 18.04 Solution

@ShmulikA's answer was close, but unfortunately, selecting "None" did not work for me. I can confirm the process below works in 18.04 as of April 2019.

  1. Open Search using Super key (aka WIN for folks like me)
  2. Type "language support" and hit ENTER

enter image description here

  1. Click the Keyboard input method system dropdown menu and select XIM

enter image description here

  1. Click Close
  2. Reboot

When I logged back in, I was able to set CTRL+SHIFT+U as a shortcut in Visual Studio Code.

Solution 4

I use Ubuntu 18.10 and had trouble in a particular app (Intellij Idea).

In this askUbuntu answer, Kayvan Tehrani shows a setting that works for me in that setting. Set the XMODIFIERS to an empty string before running your application:

export XMODIFIERS=""
myapp.sh

In my case, myapp.sh was idea.sh, and I added the line inside the file:

#!/bin/sh
#
# ---------------------------------------------------------------------
# IntelliJ IDEA startup script.
# ---------------------------------------------------------------------
#
export XMODIFIERS=""
...

This way, my desktop shortcut still works.

XMODIFIERS apparently changes the way xim and ibus works, and when it's cleared, it disables the CTRL-SHIFT-U combo, allowing it to filter into the current app.

Solution 5

Try:

export GTK_IM_MODULE="gtk-im-context-simple"

and then run Eclipse from the same shell. Or if that doesn't work,

export GTK_IM_MODULE="xim"

(This test only works entering running the export command and then Eclipse from the same shell command line, it won't change anything if you use a desktop shortcut or the Applications menu, or run Eclipse from a new shell.)

If either test works, you can make the change system-wide by adding it to /etc/environment, or per-user in ~/.gnomerc. (The export command doesn't go in those files, just a new line with GTK_IM_MODULE="xim" or GTK_IM_MODULE="gtk-im-context-simple".)

It sounds like this behavior comes from GTK's input mappings as described here.

... 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.

GTK is used by a whole lot of common apps in Ubuntu, including Eclipse.

Share:
37,783

Related videos on Youtube

Frank Cheng
Author by

Frank Cheng

Updated on September 18, 2022

Comments

  • Frank Cheng
    Frank Cheng over 1 year

    Ctrl+Shift+U is a combined shortcut in Eclipse.

    But when I press it, it shows up a u, just like input with an underline. I guess this shortcut has been declared by Ubuntu, so I can't use it.

    I used to solve this problem by typing Caps Lock first.

    Is there any better method?

    • harrymc
      harrymc over 3 years
      @Code-Guru: (1) You might have Locate Pointer setting turned on in Universal Access under Pointing & Clicking section. Turn it off to see if it works. (2) This answer below is claimed by some as still working.
  • Martin
    Martin about 10 years
    Just logging out and back in works for me.
  • Rafał G.
    Rafał G. over 4 years
    This unlocks the key binding but messes up some applications. Dconf Editor is very glitchy now and DBeaver became unusable. How hard can it be to disable a fraking shortcut, Ubuntu?
  • Greg Dan
    Greg Dan about 4 years
    After changing the input method, gedit and other gnome text fields had "transparent" background bug. To fix that execute rm ~/.xinputrc and reboot. Solution from askubuntu.com/a/840073/28004
  • Greg Dan
    Greg Dan about 4 years
    @Brown I just found out that after removing the .xinputrc file the ctrl+shift+u doesn't work again. I am trying other solutions, however without success so far.
  • kleinfreund
    kleinfreund about 4 years
    @Phill Indeed, for me, too, this no longer works. Even though it clearly should. It doesn’t seem to work in either 19.10 or 20.04, unfortunately.
  • Phill
    Phill about 4 years
    @kleinfreund I figured out a way by renaming the IBUS daemon mv /bin/ibus-daemon /bin/ibus-daemon.bak and rebooting. This killed it for me finally.
  • yurenchen
    yurenchen about 4 years
    Ubuntu 18.04.4 ibus-setup has emoji shortcuts, but no unicode chortcuts settings : (
  • kleinfreund
    kleinfreund over 3 years
    @Neurotransmitter For me, these steps unfortunately no longer work. I also tried to set the keyboard input method system to “none”, but the two shortcuts are still active when I type in, for example, a VS Code editor window.
  • Greg Dan
    Greg Dan over 3 years
    Tried again this solution and it worked. It seems that the linked patch was required to make the solution work bugs.launchpad.net/ubuntu/+source/ibus/+bug/1885914
  • David Faure
    David Faure about 3 years
    And if you have trouble removing ibus because zoom depends on it, see this page for how to remove the (incorrect) dependency from zoom to ibus: hashman.ca/zoom
  • Conrado
    Conrado almost 3 years
    For this to work on Ubuntu 20.04, you will need to configure it to use ibus. The default IM module is gtk-im-context-simple which intercepts Ctrl+Shift+U on its own (and I don't know if there is a way to disable it)
  • kleinfreund
    kleinfreund almost 3 years
    @Conrado Why would I want to mess with something as internal as this? I don’t even know what ibus is to begin with. I just want use a keyboard shortcut that is being hogged by something else that I don’t want to use.
  • Conrado
    Conrado almost 3 years
    @kleinfreund Chill dude, maybe complain to the Ubuntu developers, I'm just sharing what worked for me. Also I got the link wrong, this is how you configure Ubuntu to use ibus
  • Arun
    Arun almost 3 years
    Helpful, but with the caveat that it also disables the compose key and any .XCompose shortcuts you might have set up (at least on Linux Mint 19.3---YMMV).
  • LostKatana
    LostKatana over 2 years
    Validated with Ubuntu 21.10 to work
  • Tharkius
    Tharkius over 2 years
    This worked for me and should be the accepted answer, as it clearly explains what the Ctrl+Shift+U does on Ubuntu and how to disable it.