private void setKeyBinding(DockingActionIf action, String keyText, int keyCode)
			throws Exception {

		selectRowForAction(action);
		triggerText(keyField, keyText);

		assertEquals(keyText.toUpperCase(), keyField.getText());

		runSwing(() -> panel.apply());

		if (!Objects.equals(KeyStroke.getKeyStroke(keyCode, 0), action.getKeyBinding())) {

			Msg.debug(this, "Action did not take keybinding: " + action.getFullName());

			assertEquals("Key binding was not applied", KeyStroke.getKeyStroke(keyCode, 0),
				action.getKeyBinding());
		}
	}
Tests the {@link KeyBindingUtils} class.


@since  Tracker Id 329
Ghidra/Features/Base/src/test.slow/java/ghidra/framework/plugintool/dialog/KeyBindingUtilsTest.java