"none" to disable keybinding

This commit is contained in:
Sascha Kruse 2012-08-13 00:49:00 +02:00
parent 2dbdc19e1f
commit a18d993401

View File

@ -880,6 +880,11 @@ void init_shortcut(keyboard_shortcut * ks)
if (ks == NULL || ks->str == NULL)
return;
if (!strcmp(ks->str, "none") || (!strcmp(ks->str, ""))) {
ks->is_valid = False;
return;
}
char *str = strdup(ks->str);
char *str_begin = str;