public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Jannis Ötjengerdes" <j.oetjengerdes@gmail.com>
To: edk2-devel@lists.01.org
Subject: override hotkey esc in HII form
Date: Thu, 16 Mar 2017 19:19:41 +0100	[thread overview]
Message-ID: <CAPVSGsrVZt6LNz3s09167mDWRBir=v=bsZ9n=0S71crBXuhhHg@mail.gmail.com> (raw)

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


             reply	other threads:[~2017-03-16 18:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-16 18:19 Jannis Ötjengerdes [this message]
2017-03-20  7:29 ` override hotkey esc in HII form Dong, Eric

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAPVSGsrVZt6LNz3s09167mDWRBir=v=bsZ9n=0S71crBXuhhHg@mail.gmail.com' \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox