diff options
| author | bunnei <bunneidev@gmail.com> | 2019-03-07 15:32:32 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-07 15:32:32 -0500 |
| commit | 95fff8fd23ccc5bdc2db2d4f07ccdeb31fd4edf6 (patch) | |
| tree | 7acf0bc56ada3e429be14df66c1a5742f31f2d5d /src/yuzu/applets/web_browser.cpp | |
| parent | 3846cfa7ba514e98f9a276b9aec9e01781eb3636 (diff) | |
| parent | 91b36c026a4e55e6c3af9c95e5732c73aefdfe0d (diff) | |
Merge pull request #2196 from DarkLordZach/web-applet-esc
web_browser: Add shortcut to Enter key to exit applet
Diffstat (limited to 'src/yuzu/applets/web_browser.cpp')
| -rw-r--r-- | src/yuzu/applets/web_browser.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/yuzu/applets/web_browser.cpp b/src/yuzu/applets/web_browser.cpp index 6a9138d53e..979b9ec143 100644 --- a/src/yuzu/applets/web_browser.cpp +++ b/src/yuzu/applets/web_browser.cpp @@ -56,6 +56,8 @@ constexpr char NX_SHIM_INJECT_SCRIPT[] = R"( window.nx.endApplet = function() { applet_done = true; }; + + window.onkeypress = function(e) { if (e.keyCode === 13) { applet_done = true; } }; )"; QString GetNXShimInjectionScript() { |
