From e93411598287c16523bc9271e5d328d430fdcd47 Mon Sep 17 00:00:00 2001 From: Andy Stewart Date: Sat, 2 May 2020 22:43:03 +0800 Subject: [PATCH] Make user can type string in Google Cloud Terimnal. --- core/js/get_focus_text.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/js/get_focus_text.js b/core/js/get_focus_text.js index cc9dcaa..7e78197 100644 --- a/core/js/get_focus_text.js +++ b/core/js/get_focus_text.js @@ -11,6 +11,8 @@ } else { if (window.location.href.startsWith("https://web.telegram.org/") && activeElement.hasAttribute("placeholder")) { return activeElement.textContent; + } else if ((window.location.href.startsWith("https://console.cloud.google.com/") || window.location.href.startsWith("https://ssh.cloud.google.com/")) && activeElement.tagName.toLowerCase() == "iframe") { + return ""; } else { return undefined; }