In Chrome, Safari: ⌘L, ^L = ???
Works with any text selected in the URL bar or search bar. It works on Chrome and Safari but not Firefox. What is this? The only info I found was at superuser.com. A reply points to system bindings, saying that it "centers text in multi-line fields". I tried it in a Gmail letter, didn't do anything. I tried it in TextEdit and it had the same effect as Chrome and Safari and it didn't center the text in any way. Also tried adding lines after the text I selected to see if that affected it but it didn't.
So what is that effect? Is it just what the other reply said, to "help you figure out which input box is selected"?
Posted Jun 10, 2011, 5:14 PM UTC
The Cocoa text system, which is used by TextEdit and most text fields, implements a subset of Emacs (a unix programmer's editor) key bindings. Ctrl-L in emacs centers the view around the current selection. In Cocoa, it does the same thing, but it also blinks any selected text. If you open a fairly large text file in TextEdit, select some text and then scroll so it's offscreen, it'll be easier to see what exactly it's doing. It's main function is to scroll the text so the cursor or selection is centered in the visible area.