Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I disable the Insert key in the Delphi IDE?

Something I find really annoying is putting the Delphi editor into "type over mode" by pressing the Insert key, is there a way of disabling this behaviour in the Delphi IDE?

like image 992
Alister Avatar asked Jul 22 '14 03:07

Alister


People also ask

How do I turn off overwrite without Insert key?

Open Word. Go to File > Word Option > Advanced. Uncheck the Use the Insert key to control overtype mode option under the Editing options.

What is the purpose of the Insert key?

(INSert key) A keyboard key that is used to switch between insert and overtype mode or to insert an object at the current cursor location.


2 Answers

Get a table fork, insert it under the Ins key and pop it off.

When you have finished your Delphi editing session you can replace it.

:P

like image 168
Hugh Jones Avatar answered Oct 14 '22 10:10

Hugh Jones


You can write your own key binding for the code editor, to remap the keystroke.

There are a couple of examples of doing so included with Delphi itself. They're in your Samples folder; the exact location depends on your Delphi and Windows versions. In XE6 on Win7, for instance, see

"C:\Users\Public\Public Documents\Embarcadero\Studio\14.0\Samples\Object Pascal\VCL\ToolsAPI\Editor KeyBinding"

In XE5, it's in

"C:\Users\Public\Documents\RAD Studio\12.0\Samples\Delphi\VCL\ToolsAPI\Editor KeyBinding".

And in D2007 look in

"C:\Users\Public\Documents\RAD Studio\5.0\Demos\DelphiWin32\VCLWin32\ToolsAPI\Editor KeyBinding".

With that being said, the behavior of the Ins in the Delphi Code Editor is the same behavior that the key has in every single text editor I've ever encountered (including those simple ones like Notepad.exe), going back to the days of MS-DOS and Edit.exe. If there's ever a chance that someone else will use your copy of the IDE, you're going to really tick them off if it doesn't act like a standard text editor/

like image 30
Ken White Avatar answered Oct 14 '22 11:10

Ken White