刷新页面后,将焦点放在网页而不是Firefox调试器上 [英] Set focus on web page rather than Firefox debugger after refreshing page

查看:116
本文介绍了刷新页面后,将焦点放在网页而不是Firefox调试器上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用默认的Firefox Web开发人员工具。 Firefox 20.0,Mac OS X 10.7。

I'm using the default Firefox web developer tools. Firefox 20.0, Mac OS X 10.7.

如果我打开开发人员工具的调试器面板(但没有关注),并刷新页面,焦点将转到调试器面板而不是刷新的页面。我可以设置焦点转到刷新的页面吗?

If I have the developer tools' Debugger panel open (but not focussed), and refresh the page, focus goes to the debugger panel rather than the refreshed page. Can I set focus to go to the refreshed page instead?

如果我打开Web控制台面板,那就不会重点关注 - 理想情况下我喜欢让调试器的行为方式相同。

If I have the Web Console panel open instead, that doesn't steal the focus - ideally I'd like to get the debugger to behave the same way.

我的程序使用文档keyup和keydown事件,页面需要关注这些才能工作。不得不每次点击页面都令人惊讶地烦恼(这只是一件小事,但每次刷新所需的工作量都会增加一倍!)。

My program uses document keyup and keydown events, and the page needs focus for these to work. Having to click on the page each time is proving surprisingly annoying (it's only a small thing, but it's doubling the amount of work required for each refresh!).

推荐答案

这仍然是一个烦恼,因为Firefox 61.0.2 (Windows 7)

This is still an annoyance, as of Firefox 61.0.2 (Windows 7).

我发现的唯一解决方法是将Developer Tools设置为在 Separate window 模式下运行 - 而不是停靠在浏览器上,如:

The only workaround I've found is to have Developer Tools set to run in "Separate window" mode - instead of docked to the browser, like:

这篇关于刷新页面后,将焦点放在网页而不是Firefox调试器上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆