Changed code to only enable the menu items when the Coda editor has focus.