The addEventListener call needs to have the useCapture field set to true. The data-driven-forms patternfly 4 wizard will continue to the next step when the Enter key is pressed. If we add our keydownHandler as an event listener with useCapture set to True, the keydownHandler will trigger before the wizards handler. This will effectively override the wizard's handling of the Enter key so that it can be used to search when the user has either package search bar in focus. |
||
|---|---|---|
| .. | ||
| formComponents | ||
| steps | ||
| CreateImageWizard.js | ||
| CreateImageWizard.scss | ||
| ImageCreator.js | ||
| WizardStepPackages.scss | ||