+ LYXERR(Debug::KEY, "Getting key " << ev->key() << ", with text '"
+ << fromqstr(ev->text()) << "'");
+ // This is unsafe because ev->text() is the unicode representation of the
+ // key, not the name of the key. For example, Ctrl-x and Alt-x produce
+ // different texts.
+ sym->setText(qstring_to_ucs4(ev->text()));
+ LYXERR(Debug::KEY, "Setting key to " << sym->key() << ", "
+ << to_utf8(sym->text()));