[Ide] Fix crash when opening context menu

... when using the keyboard shortcut.