disable the selection of current mode to fix #2545

Adds a menu item listener to keep the current mode always selected in the mode menu (in case someone clicks it). Fixes issue #2545 .