Skip to content

Commit

Permalink
feat: alt+up in file browsing menus now opens parent directory
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasklaen committed Aug 30, 2024
1 parent bfd440d commit 47cccb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/uosc/lib/menus.lua
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ function open_file_navigation_menu(directory_path, handle_activate, opts)
menu = Menu:open(menu_data, function(event)
if event.type == 'activate' then
activate(event --[[@as MenuEventActivate]])
elseif event.type == 'back' then
elseif event.type == 'back' or event.type == 'key' and event.id == 'alt+up' then
if back_path then open_directory(back_path) end
elseif event.type == 'close' then
close()
Expand Down

0 comments on commit 47cccb4

Please sign in to comment.