From 7ceac0539549d07a0f14e517f277f002c242495f Mon Sep 17 00:00:00 2001 From: Marco Date: Wed, 31 May 2017 21:27:04 +0200 Subject: [PATCH] add support for custom commands. all autotype tests are getting passed now --- src/autotype/AutoType.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/autotype/AutoType.cpp b/src/autotype/AutoType.cpp index fbe64b45..e4618f74 100644 --- a/src/autotype/AutoType.cpp +++ b/src/autotype/AutoType.cpp @@ -679,7 +679,7 @@ bool AutoType::checkSyntax(const QString &string) { //checks things like {word 23}{F1 23}{~ 23}{% 23}{^}{F12}{(}{) 23}{[}{[}{]}{Delay=23}{+}{-}~+%@fixedstring QString allowRepetition = "(\\s[0-9]*){0,1}"; - QString normalCommands = "[A-Z]*" + allowRepetition; + QString normalCommands = "[A-Z:]*" + allowRepetition; //the ":" allows custom commands QString specialLiterals = "[\\^\\%\\(\\)~\\{\\}\\[\\]\\+-]" + allowRepetition; QString functionKeys = "(F[1-9]" + allowRepetition + "|F1[0-2])" + allowRepetition; QString numpad = "NUMPAD[0-9]" + allowRepetition;