Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qt Creator 3.0.0 and Ctrl-Shift under X.Org X Server 1.15.0
QtWS25 Last Chance

Qt Creator 3.0.0 and Ctrl-Shift under X.Org X Server 1.15.0

Scheduled Pinned Locked Moved Qt Creator and other tools
6 Posts 2 Posters 2.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    umod.47
    wrote on last edited by
    #1

    I'm running Arch Linux with X.Org server 1.15.0 and I have Qt Creator 3.0.0 with Qt 5.2.0 installed from Arch repo.
    I'm using Awesome window manager.
    I'm using the following Xorg keyboard configuration:
    @Section "InputClass"
    Identifier "system-keyboard"
    MatchIsKeyboard "on"
    Option "XkbLayout" "us,ru"
    Option "XkbVariant" ","
    Option "XkbOptions" "grp:ctrl_shift_toggle,grp_led:scroll,compose:rwin"
    EndSection
    @
    The problem is the following: whenever I use ctrl+shift to change keyboard layout, Qt creator loses the first key I press.
    For example, if i keep pressing the same key (for example, "G") twice then switch layout, press it twice again, switch, press, etc., I get "пgпgпgпg" instead of "ппggппggппggппgg", because every key right afrer layout change is "eaten".

    I've found the following: this happens if "grp:ctrl_shift_toggle" was set during Qt Creator startup. If it's started, and then I switch layout change to Alt+Shift:
    @setxkbmap -option -option grp:alt_shift_toggle
    @
    then Qt Creator still "eats up" the first key after Ctrl+Shift released.
    If Qt creator is started with "grp:with alt_shift_toggle" or with no toggle at all, everything is fine even if I switch to "grp:ctrl_shift_toggle" after it's start.

    The problem doesn't seem to appear in Gnome DE, as long as it uses his own layout management routine, but I don't like new gnome, so I decided to stay in Awesome.
    Any other app works fine.
    Awesome doesn't use any "Ctrl+Shift+KEY" sequences. All his shortcuts involve a key with a logo between Ctrl and Alt.

    I'm not sure if this is a bug of Qt creator or my own distro setup, so I've posted it here and not in the bugtracker.

    Press ESCAPE to enter or ENTER to escape.
    Keyboard not found. Press F1 to continue.
    (c) BIOS

    1 Reply Last reply
    0
    • U Offline
      U Offline
      umod.47
      wrote on last edited by
      #2

      I've tried to remove all the hotkeys from Qt Creator that involve Ctrl and Shift together, and still no result.
      Is there anything else about Ctrl+Shift key combo in Creator?

      Press ESCAPE to enter or ENTER to escape.
      Keyboard not found. Press F1 to continue.
      (c) BIOS

      1 Reply Last reply
      0
      • U Offline
        U Offline
        umod.47
        wrote on last edited by
        #3

        Something is really funny...
        Ctrl+Num/ doesn't seem to work, while Ctrl+'/' (where '/' is located on the left from Right Shift key) works.
        This is independant of NumLock or current layout and sometimes is very frustrating.

        EDIT: my current workaround is the following bash script:
        @
        #!/bin/bash
        echo Starting Qt Creator with a keyboard workaround. What a shame :(
        xkb_option=$(setxkbmap -query | grep options | sed 's/options:\s*//')

        setxkbmap -option
        qtcreator &
        #another nasty workaround to make SURE creator has started before setxkbmap returns old layout
        sleep 5
        setxkbmap -option $xkb_option@

        This is obviously an ugly solution :(

        Press ESCAPE to enter or ENTER to escape.
        Keyboard not found. Press F1 to continue.
        (c) BIOS

        1 Reply Last reply
        0
        • U Offline
          U Offline
          umod.47
          wrote on last edited by
          #4

          OK. Brilliant. Now Qt creator is completely unusable.
          With version 3.1.2 my workaround doesn't work anymore. Qt creator keeps eating up the first symbol after Ctrl+Shift language switch. If I change grp:ctrl_shift_toggle to grp:alt_shift_toggle, Ctrl+Shift doesn't produce any bugs but doetn't switch layout as well.

          Press ESCAPE to enter or ENTER to escape.
          Keyboard not found. Press F1 to continue.
          (c) BIOS

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Hi and welcome to devnet,

            Sounds you might be hitting a bug, did you already checked the "bug report system":http://bugreports.qt-project.org to see if it's something known ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • U Offline
              U Offline
              umod.47
              wrote on last edited by
              #6

              I've reported here:
              https://bugreports.qt-project.org/browse/QTCREATORBUG-9589
              Looks like it's not QtCreator-related bug, but it appears there.

              Press ESCAPE to enter or ENTER to escape.
              Keyboard not found. Press F1 to continue.
              (c) BIOS

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved