I use Vimium for Chrome, which allows me to refresh with the r
key. When I am using the dev tools I lose focus of the page, and have to click in the page in or
Chrome Version 35.0.1916.114
On web page, F12. Should show Elements tab, if not switch to it with ctrl+[. Once you get elements tab to show on F12 from page, you can use Esc to get to the console, if need be.
Then, when elements panel is focused, three tabs before you meet anything interesting, I get the styles panel, 'user agent stylesheet'. Two more tabs and I get the little dotted icon in top right, space to show that.
At this point we are 5 tabs away from start. Two more tabs and I get 'find in styles', one more tab and I get the computed properties panel. Then another tab gets to the filter below it.
Now we are at 9 tabs.
Guess what the 10th tab is.
Or, if your pinky is getting tired, it is only 8 shift-tabs going backwards.
That's what we call in the business, 'discoverability'.
Then again, here is the AutoHotkey script:
; Match any part of title
SetTitleMatchMode, 2
#IfWinActive - Google Chrome
;#IfWinActive ahk_class Chrome_WidgetWin_1
+F10:: ; goto html body, use upper left corner mouse click
CoordMode, Mouse, Screen
MouseGetPos, xpos, ypos
CoordMode, Mouse, Relative
MouseClick, left,10, 95, 1, 0
CoordMode, Mouse, Screen
MouseMove, %xpos%, %ypos%, 0
Return
F10:: ; from html, goto dev tools (Elements Panel must be default here, with console open ESC),
; might need to adjust tab number to suit your icons to the right of location bar
Send, ^l
Send, {tab 7}
Return
^F10:: ; from html, goto dev tools - previously opened console (Elements Panel must be default here, with console open ESC)
Send, ^l
Send, {tab 7}
Send, {tab 13}
Return
#IfWinActive ;Chrome
Shamelessly copied from Hugh Lee
Now you can move focus to the page only with j.
But javascript: is too long, isn't it? Then follow this.
Go to Chrome Settings page
Click "Manage search engines..." in the Search section
Add a new search engine with
any name e.g. Back to page
any keyword e.g. j
URL - javascript:
Hit Control + L to focus the addressbar. Then hit F6 once to focus the bookmark bar (if you have one) and F6 again to focus the page.
I still haven't found a way to focus page from dev-tools, while leaving dev-tools opened, but:
Reference: https://developers.google.com/chrome-developer-tools/docs/shortcuts
OS X you can natively cycle between application windows using:
Move focus to next window: ⌘ + `
Move focus to last window: ⌘ + ⇧ + `
If this isn't working, check it's enabled in
System Preferences > Keyboard > Keyboard Shortcuts tab > Keyboard section
While on Linux, switch to address bar from Dev Tools with Alt+D
and then press Shift+Tab
twice. This brings you back to main page. Shame it doesn't work on Mac though.