Ubuntu – Press a shortcut again to undo the action

keyboardshortcut-keys

For example, to open the context menu for a highlighted item in Nautilus, one can press Shift+F10 to open the context menu (cf. this question). However, pressing Shift+F10 again does not close the menu, as I would have expected.

Is there a way to enable this behaviour for this shortcut (and for other similar shortcuts, in general)? Alternatively, is there another keyboard action I can use to close the context menu (I don't want to click the mouse)?

Best Answer

You may press esc to close the context menu.