diff options
| author | BossCode45 <human.cyborg42@gmail.com> | 2023-08-15 21:27:51 +1200 |
|---|---|---|
| committer | BossCode45 <human.cyborg42@gmail.com> | 2023-08-15 21:27:51 +1200 |
| commit | ea569d9c9c61eb26f7d325b41d8ac839dc470eec (patch) | |
| tree | 33c15ab71f81e6647d904f3133b16afd87c836ed /util.cpp | |
| parent | 37a2725da41e363fcdca12d0374b192cd03905d0 (diff) | |
| download | YATwm-ea569d9c9c61eb26f7d325b41d8ac839dc470eec.tar.gz YATwm-ea569d9c9c61eb26f7d325b41d8ac839dc470eec.zip | |
feat: Made the bind modes work
Numlock still seems to mess with keybindings.
Also switched from storing keybinds with KeySym to KeyCode
Diffstat (limited to 'util.cpp')
| -rw-r--r-- | util.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -1,6 +1,7 @@ #include "util.h" #include <sstream> +#include <algorithm> using std::string; @@ -22,3 +23,10 @@ string getEventName(int e) { return evNames[e]; } + +string lowercase(string s) +{ + string s2 = s; + std::transform(s2.begin(), s2.end(), s2.begin(), [](unsigned char c){ return std::tolower(c); }); + return s2; +} |
