Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Say I go into a browser (chrome) or a chat window (empathy) and type "calandar", an obvious misspelling of the word calendar. The word is underlined with red squiggles and I want to auto correct this word. I could right click on the misspelled word and pick the correction, but using the mouse is inefficient.

How could I invoke the spell correction dialog with a keyboard shortcut and have it work across all apps?

share|improve this question
add comment

2 Answers 2

Probably the simplest way is to use your Menu button on your keyboard

i.e. cursor backwards to the squiggle and press Menu. Then select the suggested correction.

If you don't have a Menu key, map a keyboard shortcut (search in dash for Keyboard Shortcut) to a key combination (e.g. CTRL+H) to the command

xdotool keydown Menu

N.B. install the package xdotool if you haven't already got it installed

sudo apt-get install xdotool
share|improve this answer
    
the shift + f10 menu doesn't seem to account for the word, only the whole textarea's set of options –  tester Dec 12 '11 at 21:48
    
I presume that means you dont have a Menu key... how about my amended answer? –  fossfreedom Dec 12 '11 at 21:56
    
after running that xdotool keydown Menu, it looks like that's opening the same menu that shift+f10 does.. Thanks for trying to help out. –  tester Dec 12 '11 at 22:03
    
by the way i'm testing this in an empathy chat window –  tester Dec 12 '11 at 22:07
    
on 11.04, gnome2 –  tester Dec 12 '11 at 22:14
add comment

Mine works when I just hit F10, forget about the shift. The F10 button even says "spell" on it, so it works all by itself.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.