jupyter / qtconsole

Jupyter Qt Console
https://qtconsole.readthedocs.io/en/stable/
BSD 3-Clause "New" or "Revised" License
412 stars 198 forks source link

"MultiKey" treatment #378

Open boffi opened 5 years ago

boffi commented 5 years ago

I'm using QT Console, as shipped from Anaconda, with X on Linux.

Linux debian 5.2.0-2-amd64 #1 SMP Debian 5.2.9-2 (2019-08-21) x86_64 GNU/Linux (sid) conda 4.7.11 Jupyter QtConsole 4.5.4 Python 3.7.4 (default, Aug 13 2019, 20:35:49) Type 'copyright', 'credits' or 'license' for more information IPython 7.7.0 -- An enhanced Interactive Python. Type '?' for help.

When I press "MultiKey" to start a multi key XCompose sequence the QT Console inserts a Unicode character 'EN DASH' (U+2013). The expected behaviour in a X program is to wait for following keystrokes and possibly insert a character when a valid sequence is detected or nothing when a valid sequence is no more possible. I notice that the same behaviour is shown also from the console as installed via a Debian Package (python3-qtconsole 4.3.1-1)

Jupyter QtConsole 4.3.1 Python 3.7.4+ (default, Sep 4 2019, 08:03:05) IPython 5.8.0 -- An enhanced Interactive Python.

ccordoba12 commented 5 years ago

You're welcome to submit a pull request to add support for this because I think we don't have it (I don't even understand what you mean by it).