mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-06 22:37:27 +01:00
grids, fix to get OnKeyPress on some key combinations, from Luis Rodrigues
git-svn-id: trunk@10301 -
This commit is contained in:
parent
4654080e39
commit
8f4b59e396
@ -4678,7 +4678,7 @@ begin
|
||||
end;
|
||||
VK_RETURN:
|
||||
begin
|
||||
if not FEditorKey then begin
|
||||
if not FEditorKey and (goEditing in FOptions) then begin
|
||||
EditorShow(True);
|
||||
Key := 0;
|
||||
end;
|
||||
@ -4686,7 +4686,7 @@ begin
|
||||
VK_BACK:
|
||||
begin
|
||||
// Workaround: LM_CHAR doesnt trigger with BACKSPACE
|
||||
if not FEditorKey then begin
|
||||
if not FEditorKey and (goEditing in FOptions) then begin
|
||||
EditorShowChar(^H);
|
||||
key:=0;
|
||||
end;
|
||||
@ -4694,21 +4694,21 @@ begin
|
||||
VK_C:
|
||||
if not FEditorKey then begin
|
||||
if ssCtrl in Shift then begin
|
||||
Key := 0;
|
||||
// Key := 0;
|
||||
doCopyToClipboard;
|
||||
end;
|
||||
end;
|
||||
VK_V:
|
||||
if not FEditorKey then begin
|
||||
if ssCtrl in Shift then begin
|
||||
Key := 0;
|
||||
// Key := 0;
|
||||
doPasteFromClipboard;
|
||||
end;
|
||||
end;
|
||||
VK_X:
|
||||
if not FEditorKey then begin
|
||||
if ssCtrl in Shift then begin
|
||||
Key := 0;
|
||||
// Key := 0;
|
||||
doCutToClipboard;
|
||||
end;
|
||||
end;
|
||||
@ -8351,4 +8351,3 @@ begin
|
||||
end;
|
||||
|
||||
end.
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user