22

I use Google Chrome on OSX. Is there a way, within the browser, to get a text cursor that will allow me to navigate through text, selecting and copying text using only the keyboard?

I've looked at Vimium, Conkeror, and Vimperator, but as far as I can tell, they allow you to use the keyboard to navigate web pages (scrolling, visiting links) but don't provide a text cursor.

Is this possible?

Update: I have learned that this is called caret browsing or caret navigation. Is this possible in Chrome?

incandescentman
  • 1,293
  • 2
  • 12
  • 22

5 Answers5

21

Recently Google Chrome introduced built-in functionality to browser with caret, just press F7 or go to Settings > Advanced > Accessibility and then turn on "Navigate pages with a text cursor" switch.

enter image description here

Prolog
  • 336
  • 1
  • 3
  • 8
  • 2
    Oh my god, I thought I was crazy and this text cursor thing had always been there, but now I'm realizing my 3 year old turned it on last week while button mashing on my keyboard! – Kyle Hale Feb 03 '21 at 22:00
10
  1. Press Ctrl + Shift + J to open the console.

  2. Enter the following into the console and press Enter:

    document.body.contentEditable=true
    

Now you get a cursor and can even edit the whole page.

Oliver Salzburg
  • 86,445
  • 63
  • 260
  • 306
  • 8
    Whilst this is useful (+1), it is very different to caret browsing. The content is literally editable and is no longer navigable (anchors are not active, etc.). – MrWhite Mar 09 '13 at 23:35
  • @w3d: Humm, you're right. Let me see if I can offer something better :D – Oliver Salzburg Mar 09 '13 at 23:36
  • @w3d: Seems like most people online only offer text selection as a replacement for caret browsing, I doubt that's what you want either. The best I could offer would be to turn content editing off while the mouse cursor is inside the page (move cursor to address bar to show the caret): `$("html").hover(function(){document.body.contentEditable=false;},function(){document.body.contentEditable=true;});` – Oliver Salzburg Mar 09 '13 at 23:43
  • The only problem with this way is that I also couldn't find a keyboard-only way to select "Console", when opening Ctrl+Shift+J. EDIT: Weird enough, it seems Ctrl+Shift+J sometimes open in Elements tab (and then I can't TAB to Console), and sometimes opens directly on Console (as wished). Thank you for the hint anyway. – Charles Roberto Canato Nov 16 '13 at 19:18
3

Vimperator has caret browsing. The default keybind for it is C.

Oliver Salzburg
  • 86,445
  • 63
  • 260
  • 306
Raphael
  • 31
  • 1
2

So far, it is not yet implemented or planned:source. You can star this feature request and remain updated.

Ashildr
  • 2,698
  • 5
  • 26
  • 45
Thieme Hennis
  • 213
  • 1
  • 3
  • 11
1

The chrome extension, Caret Browsing supports mode switching between the caret and the normal browsing.

enter image description here

I think many people'd like the caret navigation back/forward as well, but it hasn't supplied the feature yet.

Jeff T.
  • 129
  • 3