Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-28905

Multicursor editing: Dead keys work only on the last cursor position

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • Qt Creator 9.0.2
    • Editors
    • None
    • Linux/X11

    Description

      When using multiple cursors and entering a symbol with a dead key, the input is appended only at the cursor position added last. Entering the same character with AltGr (if possible) works as expected. This happens on Ubuntu 22.04, but not on Windows 11 with the same Qt Creator version. Additionally, Visual Studio Code on Linux handles this situation correctly, so it seems to be not the global input method's problem.

      Elaboration on dead keys: I'm using a US English Intl keyboard layout with dead keys, on both Windows and Linux, to be able to enter special characters or characters with diacritics, like Ö, Ä, or ß. A dead key produces no output per se, it modifies the character following it. Some characters can be entered by pressing AltGr and the base character key simultaneously (like AltGr+o to produce ö), some require entering a diacritic followed by the base character (like Shift+' and then e to produce ë). Of much relevance to programming, double quotes can be entered only using the dead key method: Shift+' followed by the spacebar. 

      I was modifying a code block the other day, where I wanted to add " on multiple lines, and discovered that pressing Shift+' followed by space adds the character " only at the last cursor position. As mentioned before, both QtCreator on Windows 11 and VS Code on Linux handle the situation correctly adding the double quotes on all cursor positions.

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            davschul David Schulz
            dpurgin Dmitriy Purgin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes