changeset 25408:f73887cc6b45

Ignore elements of keybindings other than 'binding'.
author ulion
date Mon, 17 Dec 2007 14:58:46 +0000
parents d97159ca0e17
children 54f9e0e764fd
files libmenu/menu.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmenu/menu.c	Mon Dec 17 14:55:45 2007 +0000
+++ b/libmenu/menu.c	Mon Dec 17 14:58:46 2007 +0000
@@ -142,6 +142,7 @@
           }
           if(r == 0)
             break;
+          if (!strcasecmp(element, "binding")) {
           key = asx_get_attrib("key",attribs);
           cmd = asx_get_attrib("cmd",attribs);
           if (key && (keycode = mp_input_get_key_from_name(key)) >= 0) {
@@ -158,6 +159,7 @@
           else
             free(cmd);
           free(key);
+          }
           free(element);
           asx_free_attribs(attribs);
           free(b);