Discussions
Sign In
•
Register
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In with LMD account
Sign In with LMD account
Categories
Recent Discussions
Categories
All Categories
1.1K
NG Controls
28
Announcements
60
LMD IDE-Tools
208
LMD ElPack
373
LMD-Tools
414
Feature Requests
38
In this Discussion
Rafael Maricca (LMD)
March 2013
RaymondWK
March 2013
TElXTree/InplaceEditor: Make the Editor capture Paste when an Action uses it for something?
RaymondWK
March 2013
edited March 2013
in
LMD ElPack
Vote Up
0
Vote Down
In a text cell when the InplaceEditor is active, how can I make the editor take control of the Ctrl+V key?
Thanks.
Raymond
Comments
3 Comments
sorted by
Votes
Date Added
Rafael Maricca (LMD)
March 2013
Posts: 0
Accepted Answer
Vote Up
0
Vote Down
You should read this (similar problem):
http://stackoverflow.com/questions/1852976/how-can-i-prevent-shortcuts-from-colliding-interacting-in-delphi
Note: It is not a simple task to overcome standard action list behaviour.
RaymondWK
March 2013
Posts: 144
Vote Up
0
Vote Down
Thanks.
I resolved this more easily:
procedure TMainForm.PasteTextualItemsActionExecute(Sender: TObject);
var
Shift : TShiftState;
Key : Word;
begin
if InplaceStr.Editing then
begin
Key := Ord('V');
Shift := [ssCtrl];
ItemTree.OnKeyDown(Sender, Key, Shift);
end
else // not InplaceStrActive
begin
PasteTextualItems(); // the original Paste action
end;
end;
Sign In
or
Register
to comment.
Comments