forked from qt-creator/qt-creator
FakeVim: Correctly save input for macro
Change-Id: I648d1ec763c8a49b6d3e1bb5fb13fe1af5ae2368 Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -968,17 +968,23 @@ public:
|
||||
QString toString() const
|
||||
{
|
||||
QString key = vimKeyNames().key(m_key);
|
||||
bool namedKey = !key.isEmpty();
|
||||
|
||||
if (key.isEmpty()) {
|
||||
if (!namedKey) {
|
||||
if (m_xkey == '<')
|
||||
key = _("<LT>");
|
||||
else
|
||||
key = QChar(m_xkey);
|
||||
} else {
|
||||
if (isShift())
|
||||
}
|
||||
|
||||
bool shift = isShift();
|
||||
bool ctrl = isControl();
|
||||
if (shift)
|
||||
key.prepend(_("S-"));
|
||||
if (isControl())
|
||||
if (ctrl)
|
||||
key.prepend(_("C-"));
|
||||
|
||||
if (namedKey || shift || ctrl) {
|
||||
key.prepend(QLatin1Char('<'));
|
||||
key.append(QLatin1Char('>'));
|
||||
}
|
||||
|
Reference in New Issue
Block a user