Use an internal command to dismiss code hints before running other commands.

This is to fix issue #3426 by dismissing code hints with an internal command when the user invoke any command (either from menu or keyboard shortcut). 
A new command is also added to invoke code hints from Edit menu.