]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ShellPkg/[hex]edit: Fix mouse freeze issue
authorRuiyu Ni <ruiyu.ni@intel.com>
Tue, 13 Mar 2018 07:39:47 +0000 (15:39 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Wed, 14 Mar 2018 03:25:44 +0000 (11:25 +0800)
In edit or hexedit, the mouse cursor doesn't move when moving
the mouse.
The root cause is 5563281fa2b31093a1cbd415553b9264c5136e89
* ShellPkg/[hex]edit: use SimpleTextInEx to read console
wrongly uses WaitForEvent() to listen keyboard input.
It blocks the code execution when there is no keyboard input.
While the same function also polls the mouse move status,
the mouse movement cannot be reflected to the screen when
there is no keyboard input.

The patch fixes the issue by use CheckEvent() instead of
WaitForEvent().

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>

No differences found