summaryrefslogtreecommitdiff
path: root/keybinds.cpp
diff options
context:
space:
mode:
authorBossCode45 <human.cyborg42@gmail.com>2023-08-22 11:58:07 +1200
committerBossCode45 <human.cyborg42@gmail.com>2023-08-22 11:58:07 +1200
commit6e5d3c8aec03d34b5d195cc920cc4c2f123a1cb2 (patch)
tree78f589ea81d130868e029a9eeb216f54bbb7549a /keybinds.cpp
parentba3ca53aef521467049a58aa766104041f987c5e (diff)
downloadYATwm-6e5d3c8aec03d34b5d195cc920cc4c2f123a1cb2.tar.gz
YATwm-6e5d3c8aec03d34b5d195cc920cc4c2f123a1cb2.zip
fixup: Made regex work better
Diffstat (limited to 'keybinds.cpp')
-rw-r--r--keybinds.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/keybinds.cpp b/keybinds.cpp
index a4a78c0..2e4ebe2 100644
--- a/keybinds.cpp
+++ b/keybinds.cpp
@@ -168,7 +168,7 @@ const Keybind KeybindsModule::emacsBindMode(string bindString)
Keybind bind;
bind.modifiers = 0;
- const std::regex keyRegex("^(?:([CMs])-)?(?:([CMs])-)?(?:([CMs])-)?([^\\s]+)$");
+ const std::regex keyRegex("^(?:([CMs])-)?(?:([CMs])-)?(?:([CMs])-)?([^\s]|(SPC|ESC|RET|))$");
std::smatch keyMatch;
if(std::regex_match(bindString, keyMatch, keyRegex))
{