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

Pressing ISO_Level5_Shift inserts null character

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • Qt Creator 4.14.1
    • FakeVim
    • None
    • Ubuntu 21.04
    • Linux/X11

    Description

      When using a keyboard layout that has ISO_Level5_Shift modifier for inserting characters more conveniently, every ISO_Level5_Shift press gets processed as a Null character. E.g. in insert mode, holding ISO_Level5_Shift results in inserting a Null character, which is displayed like a triangle.

      Using the modifier in normal mode also leads to incorrect behavior. For example, if the ')' character is produced by pressing LVL5+j, then you would expect `vi)` to select all in parentheses, but this doesn't happen as the characters get interpreted as 'v', 'i', 'null character', ')'.

      It's interesting that you can map null character to <Nop> by executing this:

      :imap ^@ <Nop>
      

      , where ^@ is what you get when you press ISO_Level5_Shift in console mode. But adding this command to vimrc seems to have no effect.

      I also tried to add this to vimrc:

      map  <Nul> <Nop>
      imap <Nul> <Nop>

      Also doesn't work.

       

      STEPS TO REPRODUCE

      1. Switch to 3l keyboard layout
      2. In Qt Creator FakeVim, press Cur/Num modifier in insert mode

      Attachments

        1. null.jpg
          null.jpg
          109 kB
        2. null2.jpg
          null2.jpg
          47 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            hjk hjk
            jirauser63030 user-715ba (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes