fix: shift+enter in menus was not bound to soft opening items

This commit is contained in:
tomasklaen
2022-09-13 13:33:52 +02:00
parent fc8c554f85
commit a110ddcc95

View File

@@ -2007,6 +2007,8 @@ function Menu:enable_key_bindings()
self:add_key_binding('bs', 'menu-back-alt4', self:create_action('back'))
self:add_key_binding('enter', 'menu-select-alt3', self:create_action('open_selected_item_preselect'))
self:add_key_binding('kp_enter', 'menu-select-alt4', self:create_action('open_selected_item_preselect'))
self:add_key_binding('shift+enter', 'menu-select-alt5', self:create_action('open_selected_item_soft'))
self:add_key_binding('shift+kp_enter', 'menu-select-alt6', self:create_action('open_selected_item_soft'))
self:add_key_binding('esc', 'menu-close', self:create_action('close'))
self:add_key_binding('pgup', 'menu-page-up', self:create_action('on_pgup'))
self:add_key_binding('pgdwn', 'menu-page-down', self:create_action('on_pgdwn'))