From 5ff065269c0c871f64d24cf0a6fa49c504289669 Mon Sep 17 00:00:00 2001 From: ulion Date: Mon, 17 Dec 2007 14:55:45 +0000 Subject: [PATCH] Remove NO_REPEAT mask from keycode, fix keycode matching for JOY_BTN0, etc. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25435 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmenu/menu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libmenu/menu.c b/libmenu/menu.c index e501a45d27..21cab96a3f 100644 --- a/libmenu/menu.c +++ b/libmenu/menu.c @@ -145,6 +145,7 @@ static int menu_parse_config(char* buffer) { key = asx_get_attrib("key",attribs); cmd = asx_get_attrib("cmd",attribs); if (key && (keycode = mp_input_get_key_from_name(key)) >= 0) { + keycode &= ~MP_NO_REPEAT_KEY; mp_msg(MSGT_GLOBAL,MSGL_V, "[libmenu] got keybinding element %d %s=>[%s].\n", keycode, key, cmd ? cmd : "");