action: add "ShowMenu" option

Parse the following in rc.xml:

<keyboard>
  <keybind key="">
    <action name="ShowMenu">
      <menu>root-menu</menu>
    </action>
  </keybind>
</keyboard>
This commit is contained in:
Johan Malm 2020-10-31 15:27:22 +00:00
parent a26fd5a75b
commit 543f00131c
4 changed files with 28 additions and 9 deletions

View file

@ -56,6 +56,8 @@ fill_keybind(char *nodename, char *content)
current_keybind->action = strdup(content);
} else if (!strcmp(nodename, "command.action")) {
current_keybind->command = strdup(content);
} else if (!strcmp(nodename, "menu.action")) {
current_keybind->command = strdup(content);
}
}