* ======================================================
*
* LyX, The Document Processor
- *
+ *
* Copyright 1995 Matthias Ettrich
* Copyright 1995-2001 The LyX Team.
*
if (curmap) {
return curmap->lookup(key, mod, this);
}
-
+
return LFUN_UNKNOWN_ACTION;
}
++i;
if (i >= s.length())
break;
-
+
if (i + 1 < s.length() && s[i + 1] == '-') {
switch (s[i]) {
case 's': case 'S':
string::size_type j = i;
for (; j < s.length() && s[j] != ' '; ++j)
tbuf += s[j]; // (!!!check bounds :-)
-
+
KeySym key = XStringToKeysym(tbuf.c_str());
if (key == NoSymbol) {
lyxerr[Debug::KBMAP]
return j;
}
i = j;
-
+
addkey(key, mod, nmod);
mod = 0;
}
}
-
+
// empty sequence?
if (!length_)
return 0;
{
string buf;
- if (deleted_)
- return buf;
-
+ //if (deleted_)
+ // return buf;
+
for (vector<unsigned int>::size_type i = 0; i < length_; ++i) {
buf += kb_keymap::printKeysym(sequence[i], modifiers[i] & 0xffff);