feat: add an ability to open submenus

With this, users can set up keybinds to send `show-submenu` message to
uosc with menu ID to open just that.
Example: `script-message-to uosc show-submenu "Foo > Bar"`

closes #75
This commit is contained in:
tomasklaen
2022-08-23 19:10:22 +02:00
parent ef7688fa97
commit 761fa996e0
2 changed files with 43 additions and 7 deletions

View File

@@ -231,6 +231,12 @@ mbtn_right script-binding uosc/menu
menu script-binding uosc/menu
```
To display a submenu, send a `show-submenu` message to **uosc** with first parameter specifying menu ID. Example:
```
m script-message-to uosc show-submenu "Foo > Bar"
```
**\*menu** button is the key between **win** and **right_ctrl** buttons that none uses (might not be on your keyboard).\*
### Adding items to menu