void KeyMap::write(string const & bind_file, bool append, bool unbind) const
{
ofstream os(bind_file.c_str(),
- append ? (ios::app | ios:: out): ios::out);
+ append ? (ios::app | ios::out) : ios::out);
if (!append)
os << "## This file is automatically generated by lyx\n"
remove = it;
if (it->table.get())
it->table.reset();
- }
+ }
} else if (it->table.get()) {
it->table->unbind(seq, func, r + 1);
if (it->table->empty())
std::pair<KeySymbol, KeyModifier>
find1keybinding(FuncRequest const & func) const;
-
/**
* Returns a string of the given keysym, with modifiers.
* @param key the key as a keysym
static std::string const printKeySym(KeySymbol const & key,
KeyModifier mod);
+private:
+ ///
typedef std::pair<KeyModifier, KeyModifier> ModifierPair;
-
-private:
///
struct Key {
/// Keysym