summaryrefslogtreecommitdiff
path: root/commands.cpp
diff options
context:
space:
mode:
authorBossCode45 <human.cyborg42@gmail.com>2023-08-15 21:27:51 +1200
committerBossCode45 <human.cyborg42@gmail.com>2023-08-15 21:27:51 +1200
commitea569d9c9c61eb26f7d325b41d8ac839dc470eec (patch)
tree33c15ab71f81e6647d904f3133b16afd87c836ed /commands.cpp
parent37a2725da41e363fcdca12d0374b192cd03905d0 (diff)
downloadYATwm-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 'commands.cpp')
-rw-r--r--commands.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/commands.cpp b/commands.cpp
index af523ad..54fe891 100644
--- a/commands.cpp
+++ b/commands.cpp
@@ -1,5 +1,6 @@
#include "commands.h"
#include "error.h"
+#include "util.h"
#include <cctype>
#include <iostream>
@@ -11,7 +12,7 @@
#include <regex>
#include <cstring>
-using std::cout, std::endl, std::string, std::vector, std::tolower;
+using std::cout, std::endl, std::string, std::vector;
const void CommandsModule::echo(const CommandArg* argv)
{
@@ -135,13 +136,6 @@ vector<string> CommandsModule::splitCommand(string command)
return v;
}
-string lowercase(string s)
-{
- string s2 = s;
- std::transform(s2.begin(), s2.end(), s2.begin(), [](unsigned char c){ return std::tolower(c); });
- return s2;
-}
-
CommandArg* CommandsModule::getCommandArgs(vector<string>& split, const CommandArgType* argTypes, const int argc)
{
CommandArg* args = new CommandArg[argc];