From 3661e55fba3b5f3be246b3f65d650460282018ac Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 30 Dec 2002 07:38:45 +0000 Subject: [PATCH] print an error for invalid modifier keys --- src/bindings.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bindings.cc b/src/bindings.cc index fff4b47b..606eff32 100644 --- a/src/bindings.cc +++ b/src/bindings.cc @@ -9,6 +9,9 @@ extern "C" { #include + +#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; -- 2.45.2