34

Shift+Ctrl+E are invoking the Emoji picker in Ubuntu Bionic (18.04). I use that shortcut in another application. How can I change the shortcut?

valiano
  • 1,985
sup
  • 4,862
  • If someone is struggling with disabling Emoji shortcut in VS Code, here is a possible solution: https://askubuntu.com/a/1269241/229740 – zardosht Aug 22 '20 at 17:59
  • Related: https://askubuntu.com/questions/1125726/how-to-disable-ctrl-shift-e-keybinding-from-showing-eeeee-and-loading-emoji-opti/1269239#1269239 – Ciro Santilli OurBigBook.com Sep 27 '22 at 10:17

3 Answers3

42

On needs to run ibus-setup and in the "Emoji" tab

IBus Preferences dialog box showing the Emoji tab

....change the shortcut (click on the three dots that are focused in the screenshot). I had to restart my computer after that so that the change would take effect (not sure how to restart IBUS).

Eliah Kagan
  • 117,780
sup
  • 4,862
  • I'm not able to run it it raises an error ```Traceback (most recent call last): │ File "/usr/share/ibus/setup/main.py", line 33, in │ from gi import require_version as gi_require_version │ModuleNotFoundError: No module named 'gi'
    
    
    – Ahmed Eid Jul 14 '18 at 17:26
  • I would try installing sudo apt install python3-gi – sup Jul 14 '18 at 21:06
  • I did try that, nothing is installing because it already is installed. – Ahmed Eid Jul 14 '18 at 23:23
  • Sounds weird, did you try force reinstalling it? – sup Jul 15 '18 at 12:01
  • Appart from that, I would try looking if the files that are supposed to be installed are where they are supposed to be - or try also installing python-gi for Python 2? – sup Jul 15 '18 at 12:03
  • 1
    the who operating system has been acting up lately, I think I'm gonna reinstall it completely. ( thanks for the help). – Ahmed Eid Jul 15 '18 at 18:04
  • Im on 18.04 and cant seem to get this key combo to work. Ive tried using ibus-setup to change it to other combos, with no luck. The default ctrl shift e combo does nothing. All of my other key combos work. I am also testing this in native apps like Gedit, Geary, and TODO. Any ideas? – Todd Aug 29 '18 at 20:58
  • 4
    Try sudo ibus-setup – Mcmil Dec 10 '18 at 16:21
  • 2
    sudo ibus-setup works, but the defined keyboard shortcut doesn’t. – chmike Dec 21 '18 at 10:36
  • I have to do this every time I install a new ubuntu install. I use this keyboard shortcut a lot and it just messes any input field I happen to have focused. Thank you very much for this response. – Capaj Apr 14 '19 at 22:38
  • Thank you so much bro, Its now perfectly working for me. – Aravindha Hariharan Jun 22 '20 at 13:53
9

To change on the command line in Ubuntu 19.04, you can use gsettings. For example, to remove the shortcut, you can do:

gsettings set org.freedesktop.ibus.panel.emoji hotkey "@as []"

To re-enable to the default shortcut:

gsettings set org.freedesktop.ibus.panel.emoji hotkey "['<Control><Shift>e']"

To change to a different shortcut, run the command just above but change the part <Control><Shift>e to the desired combination.

scottkosty
  • 361
  • 2
  • 4
  • 1
    Worked for me on KDE. Nothing else worked: ibus-setup, setting the GTK_IM_MODULE env var for VS Code (the app i had problems with) – walnut_salami Aug 18 '19 at 07:00
  • If you have installed VS Code on Ubuntu using Snap, here is a solution for disabling Emoji shortcut: https://askubuntu.com/a/1269241/229740 – zardosht Aug 22 '20 at 17:56
  • Damn, this other hack still doesn't work for me on Ubuntu 18.04 and VSCode 1.53... – Næreen Feb 11 '21 at 00:01
1

This is a bug listed here:

https://bugs.launchpad.net/ubuntu/+source/ibus/+bug/1885914

The solution that I found is to remove the ibus package:

sudo apt-get remove ibus
sudo apt-get purge ibus

Go to updates and set the repository for focal fossa version for Ubuntu and remove the remanescent eoan

Go to updates and set the repository for focal fossa version for Ubuntu and remove the remanescent eoan and reinstall ibus:

sudo apt-get install ibus

Go to language support and set the iBus method, for user and root

In the terminal for user and root:

ibus-setup

and change the shortcuts in the emoji tab

In the terminal for user and root:

im-config

and set ibus

For user in the terminal:

gedit .bashrc

Include the following lines at the end:

export GTK_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
export QT_IM_MODULE=ibus
Kevin Bowen
  • 19,615
  • 55
  • 79
  • 83