[konsole] [Bug 385380] New: Cannot bind non letter/digit/. keys in profile keybinding combinations

Flav bugzilla_noreply at kde.org
Thu Oct 5 00:25:08 UTC 2017


https://bugs.kde.org/show_bug.cgi?id=385380

            Bug ID: 385380
           Summary: Cannot bind non letter/digit/. keys in profile
                    keybinding combinations
           Product: konsole
           Version: master
          Platform: unspecified
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: keyboard
          Assignee: konsole-devel at kde.org
          Reporter: hl037.prog at gmail.com
  Target Milestone: ---

In "Settings">"Edit Current Profile...">"Keyboard">"Edit...", In the Key
combination, you can only bind letters, digit, dot and underscore, others are
not working.

For example, you can't bind a Ctrl+; to an escape sequence (that could be used
in Vim for example).

It seems it's the regex key in the function
KeyboardTranslatorReader::tokenize(const QString &line) that cause the
limitation.

Replacing :

-       static const QRegularExpression
key(QStringLiteral("key\\s+([\\w\\+\\s\\-\\*\\.+)\\s*:\\s*(\"(.*)\"|\\w+)"),


with

+       static const QRegularExpression
key(QStringLiteral("key\\s+(.+)\\s*:\\s*(\"(.*)\"|\\w+)"),

Seems to workaround the problem... but I guess there is a reason while the
original regex is that complicated, this is why I didn't submitted a patch

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the konsole-devel mailing list