if (t) {
// already bound to something
- // XXX: look if callback is already bound to this key?
t->callbacks.push_back(callback);
destroytree(tree);
} else {
return true;
}
-
+/*
bool Bindings::removeKey(const StringVect &keylist, PyObject *callback)
{
assert(false); // XXX: function not implemented yet
}
return false;
}
-
+*/
void Bindings::setResetKey(const std::string &key)
{
_timer = new otk::Timer(5000, // 5 second timeout
(otk::Timer::TimeoutHandler)resetChains,
this);
- // grab the server here to make sure no key pressed go missed
+ // grab the server here to make sure no key presses get missed
otk::display->grab();
grabKeys(false);
_curpos = p;