From c9e956282ed3d5324f79b3c8479901e69f37574b Mon Sep 17 00:00:00 2001 From: Masafumi Oyamada Date: Thu, 15 Aug 2019 00:48:47 +0900 Subject: [PATCH] Add Google Translation --- package/settings.default.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package/settings.default.js b/package/settings.default.js index 1e87ed2..1fb0dce 100644 --- a/package/settings.default.js +++ b/package/settings.default.js @@ -168,6 +168,11 @@ config.globalKeyMap = { "ctrl-b": "ArrowLeft", "ctrl-m": "Enter", "/": () => $notify("searchText"), + "meta-t": ()=> { + $notify("createNewTab", { + url: `https://translate.google.com/translate?hl=auto&sl=auto&&sandbox=1&u=${encodeURIComponent(location.href)}` + }); + }, q: () => $notify("exitApplication"), "meta-i": () => keysnail.startOutlineSelector() }