Skip to content

Commit

Permalink
itemfakevim: Fix modifier key on OS X
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas Holecek <hluk@email.cz>
  • Loading branch information
hluk committed Mar 26, 2019
1 parent e18dc96 commit 869840e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion plugins/itemfakevim/tests/itemfakevimtests.cpp
Expand Up @@ -23,6 +23,12 @@

#include <QDir>

#ifdef Q_OS_DARWIN
#define FAKEVIM_CTRL "META"
#else
#define FAKEVIM_CTRL "CTRL"
#endif

ItemFakeVimTests::ItemFakeVimTests(const TestInterfacePtr &test, QObject *parent)
: QObject(parent)
, m_test(test)
Expand Down Expand Up @@ -88,7 +94,7 @@ void ItemFakeVimTests::blockSelection()

RUN(args << "edit" << "0", "");
RUN(args << "keys"
<< ":ggl" << "CTRL+V" << ":jjs_" << "ESC" << "::wq" << "ENTER", "");
<< ":ggl" << FAKEVIM_CTRL "+V" << ":jjs_" << "ESC" << "::wq" << "ENTER", "");
RUN(args << "read" << "0", "A_C\nD_F\nG_I");
}

Expand Down

0 comments on commit 869840e

Please sign in to comment.