mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-08 08:28:09 +02:00
* support of Ctrl-F4 and Ctrl-F5 for modal dialogs, solves #6747
git-svn-id: trunk@8796 -
This commit is contained in:
parent
aff5e1c197
commit
3744241d04
@ -1136,13 +1136,23 @@ BEGIN
|
||||
evNothing: Exit; { Speed up exit }
|
||||
evKeyDown: { Key down event }
|
||||
Case Event.KeyCode Of
|
||||
kbEsc: Begin { Escape key press }
|
||||
kbEsc, kbCtrlF4: Begin { Escape key press }
|
||||
Event.What := evCommand; { Command event }
|
||||
Event.Command := cmCancel; { cancel command }
|
||||
Event.InfoPtr := Nil; { Clear info ptr }
|
||||
PutEvent(Event); { Put event on queue }
|
||||
ClearEvent(Event); { Clear the event }
|
||||
End;
|
||||
kbCtrlF5: Begin { movement of modal dialogs }
|
||||
If (State AND sfModal <> 0) Then
|
||||
begin
|
||||
Event.What := evCommand;
|
||||
Event.Command := cmResize;
|
||||
Event.InfoPtr := Nil;
|
||||
PutEvent(Event);
|
||||
ClearEvent(Event);
|
||||
end;
|
||||
End;
|
||||
kbEnter: Begin { Enter key press }
|
||||
Event.What := evBroadcast; { Broadcast event }
|
||||
Event.Command := cmDefault; { Default command }
|
||||
|
Loading…
Reference in New Issue
Block a user