Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-53663

qcomposeplatforminputcontext does not support returning multiple keysyms

XMLWordPrintable

    • 2065bc070dcd1f88a1f5ba3dd6ef0139a9a441ec (qt/qtbase/dev)

      Hi!
      Sorry for my English.

      Qt5's compose is defective by design. It returns only one symbol.

      man 5 Compose says:
      Each compose sequence specifies one or more events and a resulting input sequence, with an optional comment at the end of the line:
      EVENT [EVENT...] : RESULT # COMMENT
      The result specifies a string, keysym, or both, that the X client receives as input when the sequence of events is input:
      "STRING" | keysym | "STRING" keysym

      Many peoples use compose to shortcut text snippets, such as complex commands, parts of code, etc. For example there is part of my ~/.Xresources

      <Multi_key> <z> <s> : "| sort | less"
      
      <Multi_key> <z> <d> : "colordiff -aur %d/%f %D/%F | less"
      
      <Multi_key> <z> <p> : "ps -H -eo user:24,pid,%cpu,cputime,rss,size,nice,stat,start_time,args | less"
      
      <Multi_key> <z> <a> <c> <n> : "getfacl -E -R %s | sed 's|^\\([^#].\\+\\):SRC_NAME:\\(.\\+\\)$|&\\n\\1:DST_NAME:\\2|' | setfacl --restore=-"
      

      But Qt5's compose returns only first symbol. Application based on Qt5 is no longer suitable for such use. Time spent grow dramatically.

      Fix it please.

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

            paeglis Gatis Paeglis
            eshkrig Eugenij Shkrigunov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes