Hello there,

I'm trying to develop an HII form where which cannot be left by the user
with the hotkey "esc" (escape).

What I've tried:

HotKey.ScanCode = SCAN_ESC;
FormBrowserEx2->RegisterHotKey(&HotKey, 0, 0, NULL);

I tried to override the HotKey with null, so that no action is applied, but
still, the form is closed if I press the esc key.

Although I tried to register an exit handler in the FormBrowserEx2, but
this function is not even called (I put a endless while loop in it to test
it)

Lastly I tried to do something in the EFI_BROWSER_ACTION_FORM_CLOSE action,
but all I can do there is to return a value, I tried all EFI_STATUS values,
none of these aborts the cancel request of the form.

I would appreciate it, if someone could give me a hint how do it.

Thank you!

Jannis
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to