@Override
	public void actionPerformed(ActionContext context) {

		KeyboardFocusManager kfm = KeyboardFocusManager.getCurrentKeyboardFocusManager();
		Window window = kfm.getActiveWindow();
		if (window == null) {
			return;
		}

		// use the focused component to determine what should get the context menu
		Component focusOwner = kfm.getFocusOwner();
		if (focusOwner != null) {
			Swing.runLater(() -> {
				DockingWindowManager.showContextMenu(focusOwner);
			});
		}
	}
An action to trigger a context menu over the focus owner.  This allows context menus to be
triggered from the keyboard.
Ghidra/Framework/Docking/src/main/java/docking/action/ShowContextMenuAction.java