[Konsole-devel] [Bug 216809] Key Bindings make incorrect output

Jekyll Wu adaptee at gmail.com
Wed Nov 2 00:51:26 UTC 2011


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


Jekyll Wu <adaptee at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |adaptee at gmail.com




--- Comment #1 from Jekyll Wu <adaptee gmail com>  2011-11-02 00:51:26 ---
I do not fully understand that part of code, but it seems an intentional
behavior, instead of a bug.

inline QByteArray KeyboardTranslator::Entry::text(bool
expandWildCards,Qt::KeyboardModifiers modifiers) const 
{
    QByteArray expandedText = _text;

    if (expandWildCards)
    {
        int modifierValue = 1;
        modifierValue += oneOrZero(modifiers & Qt::ShiftModifier);
        modifierValue += oneOrZero(modifiers & Qt::AltModifier)     << 1;
        modifierValue += oneOrZero(modifiers & Qt::ControlModifier) << 2;

        for (int i=0;i<_text.length();i++) 
        {
            if (expandedText[i] == '*')
                expandedText[i] = '0' + modifierValue;
        }
    }

    return expandedText; 
}

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the konsole-devel mailing list