if (lyxerr.debugging(Debug::KBMAP)) {
lyxerr << "BIND: Sequence `"
<< seq << "' Action `"
- << action << "'" << endl;
+ << action << '\'' << endl;
}
kb_sequence k(0, 0);
key_modifier::state mask(cit->mod.second);
key_modifier::state check =
static_cast<key_modifier::state>(mod & ~mask);
-
- if (*(cit->code) == *(key) && cit->mod.first == check) {
+
+ if (*(cit->code) == *key && cit->mod.first == check) {
// match found
if (cit->table.get()) {
// this is a prefix key - set new map
void kb_keymap::defkey(kb_sequence * seq, int action, unsigned int r)
{
LyXKeySymPtr code = seq->sequence[r];
- if ( ! code->isOK() ) return;
+ if (!code->isOK())
+ return;
key_modifier::state const mod1 = seq->modifiers[r].first;
key_modifier::state const mod2 = seq->modifiers[r].second;
res += cit->table->findbinding(act,
prefix
+ printKey((*cit))
- + " ");
+ + ' ');
} else if (cit->action == act) {
- res += "[";
+ res += '[';
res += prefix + printKey((*cit));
res += "] ";
}