Replaced the Text Edit with a table widget, and changed the way shortcut keys are handled to work when the image has focus.