From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ot0-x235.google.com (mail-ot0-x235.google.com [IPv6:2607:f8b0:4003:c0f::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id ABE3A80289 for ; Thu, 16 Mar 2017 11:19:43 -0700 (PDT) Received: by mail-ot0-x235.google.com with SMTP id 19so65813963oti.0 for ; Thu, 16 Mar 2017 11:19:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=ofZODXcTosWR84LJ2ncgnle6c5toDKysfXedABnMmUA=; b=nRhANJUOXqk+Z78D1f3ZuRPrD0ksxFG1aeObkYJCo4EjNKPWkSukWB1Qyka5Kn7bul ELs3pSFYTsMDzGjX0+4OL/+E39bYTYZSUYEUUgC8m/2riXcPs9uPmOOiejvTpxhuZ/48 uAxu+pVIvsgYX5zMAI5e4p325lhHp6EUrgG3vEz6a2Iloezt/AYBNvqDPKQ65yr6XYUh XPv0G12YL1nrsSe/VyAyVE1hTO8Aau9p2UodEWBAphbWwfVaRIxkdVOj49e1du36flSV aanEwkmbdlZSx30k9c0vMlq8rLqA9Wfl6BQrOCQ7auuT/LGLGgF3Wcl/rEr2RghlF26o X8nA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=ofZODXcTosWR84LJ2ncgnle6c5toDKysfXedABnMmUA=; b=JeP2ILtKaRNPG2Ay3iboDQcK32i4Bp9ZkF/dr0qs85ivX+jlg71IEnP9xVhYzLJjtW CCl5khUjHC8k5MdPcQTTULeI1JXMCje+EgE59hmqe7h5qc/SfB01OsEq3ECfuqWRl3Cl MqbUUBvZuvJdtJ6n5oIMmb3o+UaCpIBC1ThnwKVXlt/qgfrHJB6H2cNIkZ1tnmvk52Px kdNklety5TWBn7JOdr6hliWzf0zS1mYWCB/XE/Nrv5uFONJ4nx2ZYgB5AY/z4J4+/LEY i7kL7+0g8ZKSadQwixutNIMkWC92OGsuRcy3p5j9GPvjynLxOaAAA/rOUABhnynz6nHq 3Cuw== X-Gm-Message-State: AFeK/H1wWliqP2OcEGzdG4leq/+c0L7WS97WU3iyOepB3j9bjxSHiNCpVQaCjOPzLb7ZKs7+7ovXlN25SDNoDA== X-Received: by 10.157.7.23 with SMTP id 23mr4802081ote.231.1489688381872; Thu, 16 Mar 2017 11:19:41 -0700 (PDT) MIME-Version: 1.0 Received: by 10.74.162.17 with HTTP; Thu, 16 Mar 2017 11:19:41 -0700 (PDT) From: =?UTF-8?Q?Jannis_=C3=96tjengerdes?= Date: Thu, 16 Mar 2017 19:19:41 +0100 Message-ID: To: edk2-devel@lists.01.org X-Content-Filtered-By: Mailman/MimeDel 2.1.22 Subject: override hotkey esc in HII form X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Mar 2017 18:19:44 -0000 Content-Type: text/plain; charset=UTF-8 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