print an error for invalid modifier keys

This commit is contained in:
Dana Jansens 2002-12-30 07:38:45 +00:00
parent 6d59c9cce7
commit 3661e55fba

View file

@ -9,6 +9,9 @@
extern "C" {
#include <X11/Xlib.h>
#include "gettext.h"
#define _(str) gettext(str)
}
namespace ob {
@ -80,6 +83,7 @@ bool OBBindings::translate(const std::string &str, Binding &b)
mod == "Mod5") {
mods |= Mod5Mask;
} else { // invalid
printf(_("Invalid modifier element in key binding: %s\n"), mod.c_str());
return false;
}
begin = end + 1;