`cancelContextMenu` is needed only after `ctrl+space`