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-de...@kde.org
          Reporter: hl037.p...@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 watching all bug changes.

Reply via email to