8acdc19be4
Some context menu entries that were available as shortcuts were greyed out. This PR aims to fix them and improve how context menus work for the text editor and the console. The improvements include: - automatic focus on right click - automatic selection on right click. If selected text is right-clicked then copy, cut and find will use the selection, if no selection is clicked but there is text were right-clicked, then the word will be selected and used. If right-clicking empty space copy and cut will be greyed out and find will start empty. - similar functionality now exists for the console as well except the menu has fewer options due to it being read-only. - added esc to close console context menu