mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 19:09:23 +02:00
* don't eat cpu while showing the user screen
git-svn-id: trunk@5166 -
This commit is contained in:
parent
0c1b7910ab
commit
c95785db04
@ -94,6 +94,7 @@ begin
|
||||
{ closing the user screen on mouse events makes copy paste impossible }
|
||||
repeat
|
||||
repeat
|
||||
GiveUpTimeSlice;
|
||||
Drivers.GetKeyEvent(Event);
|
||||
until Event.What=evKeyboard;
|
||||
Clear:=true;
|
||||
@ -114,7 +115,7 @@ begin
|
||||
ClearEvent(Event);
|
||||
until Event.what=evKeyboard;
|
||||
while (Keyboard.PollKeyEvent<>0) do
|
||||
Keyboard.GetKeyEvent;
|
||||
Keyboard.GetKeyEvent;
|
||||
DoneKeyboard;
|
||||
|
||||
ShowIDEScreen;
|
||||
|
Loading…
Reference in New Issue
Block a user