Allow context menu to be closed even in disabled mode

Without this change, if disabling the menu is triggered by selecting one of the options in the menu, it will stay open and won't close on click nor on escape.
Merge pull request #25 from NOtherDev/patch-1

Allow context menu to be closed even in disabled mode