Feature Request: Support invoking right-click context menu from a keyboard shortcut (ex SHIFT-F10)
Apologies if this is a duplicate. I searched the issues prior to filing this one and could not find a similar feature request.
This is a feature request, not a bug. I can confirm this feature is not present on the latest version of iTerm2 (Build 3.0.15) running the latest non-beta version of macOS (10.12.6).
Background
Unfortunately, macOS doesn't natively support invoking the right-click context menu from the keyboard as is possible with the menu keyboard button or SHIFT-F10 on Windows and Linux. The solution associated with the accessibility feature to invoke CTRL-5(number pad) is insufficient because it opens the context menu where the mouse pointer is, not where the text cursor or application focus is.
Description
This feature request covers adding this functionality to iTerm via a configurable keyboard combination (probably defaulting to SHIFT-F10). To be clear, the behaviour is to open the context menu at the keyboard arrow key cursor location, as opposed to the mouse cursor location. For example, this means when moving a keyboard cursor over a misspelled word, the context menu will display with, among other things, suggested spelling corrections for that word, irrespective of where the mouse pointer happens to be.
Use cases
- iTerm application is selected as indicated by the menu bar. A user invokes the keyboard combination and the context menu appears as though the command-line part of the window was right-clicked, irrespective if the mouse pointer is pointing at another window or another GUI element outside of iTerm.
- iTerm application is selected as indicated by the menu bar and a word is highlighted. A user invokes the keyboard combination and the context menu appears as though the word was right-clicked, with all menu items conditional on that selection of the text, irrespective if the mouse pointer is pointing at another window or another GUI element outside of iTerm.
macOS applications with this feature
Third party applications such as Java editors Eclipse, NetBeans, and IntelliJ on macOS do support this feature with custom application code. Eclipse implemented such functionality in this bugzilla: https://bugs.eclipse.org/bugs/show_bug.cgi?id=219305