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)
{
*/
bool addKey(const StringVect &keylist, PyObject *callback);
- //! Removes a key binding
- /*!
- @return The callbackid of the binding, or '< 0' if there was no binding to
- be removed.
- */
- bool removeKey(const StringVect &keylist, PyObject *callback);
+ ////! Removes a key binding
+ ///*!
+ // @return The callbackid of the binding, or '< 0' if there was no binding to
+ // be removed.
+ //*/
+ //bool removeKey(const StringVect &keylist, PyObject *callback);
//! Removes all key bindings
void removeAllKeys();
Py_INCREF(Py_None); return Py_None;
}
+/*
PyObject *kunbind(PyObject *keylist, PyObject *func)
{
if (!PyList_Check(keylist)) {
}
Py_INCREF(Py_None); return Py_None;
}
+*/
void kunbind_all()
{