Z
Z
Zulkund2016-05-11 14:52:44
Delphi
Zulkund, 2016-05-11 14:52:44

Delphi 7, how to make CtRL+V keypress event handler?

Can you tell me the code of the procedure that would start when you press the key combination Ctrl + V?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton Fedoryan, 2016-05-11
@AnnTHony

Google is broken or not taught to use?
Delphi HotKey component
Creating and assigning hotkeys in Delphi 7

M
Mercury13, 2016-05-11
@Mercury13

The first option is to react in the OnKeyDown event.
The second option is to create a TActionList, set the action to Ctrl + V in it.
Which is better depends on what you need. Should the Ctrl+V key be active throughout the form or not?
Oh, and don't forget the replacement command, Shift+Ins. Should act exactly the same.
Ctrl+X = Shift+Del
Ctrl+C = Ctrl+Ins

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question