Firefox: Double-Click to Only Highlight Word


If you double-click anywhere on a word of text in any application on Windows, it will highlight that word and any following whitespace characters upto the beginning of the next word. Supposedly, Mac behaves the same way too.

The reason for this behaviour seems to be to aid in copy-paste of a word inside a document. It also helps if one wants to delete a word, since the following whitespace is also nicely removed.

However, I find this behaviour quite anachronistic and irritating today. Especially when I am editing text on Firefox and want to apply formatting on the highlighted word either in rich text mode or HTML mode.


Thankfully, there is an obscure feature hidden in Firefox to make it highlight only the word on a double-click and ignore the following whitespace. Open about:config and set layout.word_select.eat_space_to_next_word to false.


Tried with: Firefox 4


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.