summaryrefslogtreecommitdiffstats
path: root/src/yuzu/applets/qt_web_browser_scripts.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/yuzu/applets/qt_web_browser_scripts.h')
-rw-r--r--src/yuzu/applets/qt_web_browser_scripts.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/yuzu/applets/qt_web_browser_scripts.h b/src/yuzu/applets/qt_web_browser_scripts.h
index 992837a85..c4ba8d40f 100644
--- a/src/yuzu/applets/qt_web_browser_scripts.h
+++ b/src/yuzu/applets/qt_web_browser_scripts.h
@@ -73,6 +73,12 @@ constexpr char LOAD_NX_FONT[] = R"(
})();
)";
+constexpr char FOCUS_LINK_ELEMENT_SCRIPT[] = R"(
+if (document.getElementsByTagName("a").length > 0) {
+ document.getElementsByTagName("a")[0].focus();
+}
+)";
+
constexpr char GAMEPAD_SCRIPT[] = R"(
window.addEventListener("gamepadconnected", function(e) {
console.log("Gamepad connected at index %d: %s. %d buttons, %d axes.",