From 3109d1c3db496e05558ddd836c63dbbc3dab1b98 Mon Sep 17 00:00:00 2001 From: jls47 Date: Sat, 17 Jul 2021 16:10:15 -0700 Subject: qt_web_browser: Focus on the first link element Focusing on the first link element fixes element navigation upon loading the web applet in games such as Super Mario Odyssey --- src/yuzu/applets/qt_web_browser.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/yuzu/applets/qt_web_browser.h') diff --git a/src/yuzu/applets/qt_web_browser.h b/src/yuzu/applets/qt_web_browser.h index 7ad07409f..7e9f703fc 100644 --- a/src/yuzu/applets/qt_web_browser.h +++ b/src/yuzu/applets/qt_web_browser.h @@ -161,6 +161,9 @@ private: /// Loads the extracted fonts using JavaScript. void LoadExtractedFonts(); + /// Brings focus to the first available link element. + void FocusFirstLinkElement(); + InputCommon::InputSubsystem* input_subsystem; std::unique_ptr url_interceptor; -- cgit v1.2.3