Deal with more xkb bullshit

master
Drew DeVault 9 years ago
parent e5d3074d70
commit 4db89b5fe4

@ -336,10 +336,12 @@ static bool handle_key(wlc_handle view, uint32_t time, const struct wlc_modifier
struct sway_mode *mode = config->current_mode; struct sway_mode *mode = config->current_mode;
if (sym < 70000 /* bullshit made up number */) {
if (!isalnum(sym) && sym != ' ' && sym != XKB_KEY_Escape && sym != XKB_KEY_Tab) { if (!isalnum(sym) && sym != ' ' && sym != XKB_KEY_Escape && sym != XKB_KEY_Tab) {
// God fucking dammit // God fucking dammit
return false; return false;
} }
}
// Lowercase if necessary // Lowercase if necessary
sym = tolower(sym); sym = tolower(sym);

Loading…
Cancel
Save