Closed tmplinshi closed 5 years ago
if !(SubStr(oItem.path, 1, 3) = "::{") were treated as a hotkey line:
if !(SubStr(oItem.path, 1, 3) = "::{")
There are 2 rules for hotkey syntax as I know:
Lbutton::
^#Lbutton::
&
a & b::
a & b & c::
Current hotkeyline were matching all charcters with .+, I have changed the regex to the limited 2 rules mentioned above.
.+
Before: <string>^\s*(.+)(::)</string> After: <string>^\s*(\S+(?:\s+&\s+\S+)*)(::)</string>
<string>^\s*(.+)(::)</string>
<string>^\s*(\S+(?:\s+&\s+\S+)*)(::)</string>
if !(SubStr(oItem.path, 1, 3) = "::{")
were treated as a hotkey line:There are 2 rules for hotkey syntax as I know:
Lbutton::
or^#Lbutton::
&
character. For examplea & b::
ora & b & c::
Current hotkeyline were matching all charcters with
.+
, I have changed the regex to the limited 2 rules mentioned above.Before:
<string>^\s*(.+)(::)</string>
After:<string>^\s*(\S+(?:\s+&\s+\S+)*)(::)</string>