+ if(down) {
+ if(key == K_ESCAPE)
+ MR_ToggleMenu_f();
+ else
+ Key_Console (key, ascii);
+ }
+ return;
+ }
+
+
+ // FIXME: actually the up-bind should only be called if the button was actually pressed while key_dest == key_game [12/17/2007 Black]
+ // especially CL_VM_InputEvent should be able to prevent it from being called (to intercept the binds)
+ // key up events only generate commands if the game key binding is a button
+ // command (leading + sign). These will occur even in console mode, to
+ // keep the character from continuing an action started before a console
+ // switch. Button commands include the kenum as a parameter, so multiple
+ // downs can be matched with ups
+ /*
+ if (!down && bind && bind[0] == '+')
+ Cbuf_AddText(va("-%s %i\n", bind + 1, key));
+ */
+
+ // ignore binds while a video is played, let the video system handle the key event
+ if (cl_videoplaying)
+ {
+ CL_Video_KeyEvent (key, ascii, keydown[key] != 0);