]> git.proxmox.com Git - mirror_edk2.git/commit - EmbeddedPkg/Drivers/VirtualKeyboardDxe/VirtualKeyboard.c
EmbeddedPkg/VirtualKeyboard: Avoid notification called more than once
authorDandan Bi <dandan.bi@intel.com>
Sun, 9 Sep 2018 14:26:07 +0000 (22:26 +0800)
committerEric Dong <eric.dong@intel.com>
Fri, 14 Sep 2018 02:18:31 +0000 (10:18 +0800)
commit9c8e9e76bd06014e430ecfa6c8f8e21374005a29
tree99a9a142572ca707f0c24092454b0d4aa1251bc4
parent52664c525223a36e5cb9b141b11dec413908b1dd
EmbeddedPkg/VirtualKeyboard: Avoid notification called more than once

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=996

Issue:
In current code logic, when a key is pressed, it will search
the whole NotifyList to find whether a notification has been
registered with the keystroke. if yes, it will en-queue the
key for notification execution later. And now if different
notification functions have been registered with the same key,
then the key will be en-queued more than once. Then it will
cause the notification executed more than once.

This patch is to enhance the code logic to fix this issue.

Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Leif Lindholm <leif.lindholm@linaro.org>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
EmbeddedPkg/Drivers/VirtualKeyboardDxe/VirtualKeyboard.c