[MPlayer-dev-eng] [PATCH] add "ignore" key bind

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Thu Jan 18 20:58:41 CET 2007


Hello,
attached patch allows to bind the "virtual" "ignore" command to a key
(key combination more precisely). The point of it is to either suppress
the "No bind found for key" or unbind an key that is bound by default.
Opinions?

Greetings,
Reimar Döffinger
-------------- next part --------------
Index: input/input.c
===================================================================
--- input/input.c	(revision 21959)
+++ input/input.c	(working copy)
@@ -917,6 +917,7 @@
     mp_msg(MSGT_INPUT,MSGL_WARN,"                         \n");
     return NULL;
   }
+  if (strcmp(cmd, "ignore") == 0) return NULL;
   ret =  mp_input_parse_cmd(cmd);
   if(!ret) {
     mp_msg(MSGT_INPUT,MSGL_ERR,MSGTR_INPUT_INPUT_ErrInvalidCommandForKey,mp_input_get_key_name(key_down[0]));


More information about the MPlayer-dev-eng mailing list