From 26d97b8cdf2c427878c76c7df10bb3fc05360890 Mon Sep 17 00:00:00 2001 From: GLLM Date: Thu, 11 Jun 2020 22:06:00 +0200 Subject: [PATCH] Update OpenInExplorer.lua Add the possibility to define a shortcut for this LUA script. --- contrib/OpenInExplorer.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/contrib/OpenInExplorer.lua b/contrib/OpenInExplorer.lua index d456911..496bc79 100644 --- a/contrib/OpenInExplorer.lua +++ b/contrib/OpenInExplorer.lua @@ -108,4 +108,9 @@ if proper_install then function() open_in_fmanager(act_os, fmng_cmd[act_os]) end, _("Opens the file manager at the selected image's location") ) + dt.register_event( + "shortcut", + function(event, shortcut) open_in_fmanager(act_os, fmng_cmd[act_os]) end, + "OpenInExplorer" + ) end