fini menu keybinds
This commit is contained in:
@@ -66,7 +66,7 @@ void Keybinds::saveKeybindsToFile() const {
|
||||
|
||||
void Keybinds::addKey(Action action, sfKey key) {
|
||||
if (!this->modifiable) return;
|
||||
if (!getKeyStringRepresentation(key).has_value()) return;
|
||||
if (!KEYS_TO_STRING.contains(key)) return;
|
||||
|
||||
this->keybinds.at(action).insert(key);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user