mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 17:59:46 +02:00
GT-3567 - Fixed keybindings not working in DialogComponentProviders
This commit is contained in:
parent
7a85fdac25
commit
314100a70c
33 changed files with 922 additions and 362 deletions
|
@ -169,7 +169,7 @@ public class ComponentProviderActionsTest extends AbstractGhidraHeadedIntegratio
|
|||
setKeyBindingViaF4Dialog_FromWindowsMenu(newKs);
|
||||
|
||||
hideProvider();
|
||||
pressKey(CONTROL_T);
|
||||
triggerKey(tool.getToolFrame(), CONTROL_T);
|
||||
assertProviderIsActive();
|
||||
}
|
||||
|
||||
|
@ -337,7 +337,7 @@ public class ComponentProviderActionsTest extends AbstractGhidraHeadedIntegratio
|
|||
// Note: there may be a test focus issue here. If this test fails sporadically due to
|
||||
// how the action context is generated (it depends on focus). It is only useful to fail
|
||||
// here in development mode.
|
||||
pressKey(controlEsc);
|
||||
triggerKey(tool.getToolFrame(), controlEsc);
|
||||
assertProviderIsHidden_InNonBatchMode();
|
||||
}
|
||||
|
||||
|
@ -398,14 +398,6 @@ public class ComponentProviderActionsTest extends AbstractGhidraHeadedIntegratio
|
|||
});
|
||||
}
|
||||
|
||||
private void pressKey(KeyStroke ks) {
|
||||
int modifiers = ks.getModifiers();
|
||||
char keyChar = ks.getKeyChar();
|
||||
int keyCode = ks.getKeyCode();
|
||||
JFrame toolFrame = tool.getToolFrame();
|
||||
triggerKey(toolFrame, modifiers, keyCode, keyChar);
|
||||
}
|
||||
|
||||
private DockingActionIf getShowProviderAction() {
|
||||
|
||||
DockingActionIf showProviderAction =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue