我可以在 Delphi IDE 中禁用 Insert 键吗? [英] Can I disable the Insert key in the Delphi IDE?

查看:14
本文介绍了我可以在 Delphi IDE 中禁用 Insert 键吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我觉得很烦人的是通过按 Insert 键将 Delphi 编辑器置于输入模式",有没有办法在 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?

推荐答案

您可以为代码编辑器编写自己的键绑定,以重新映射击键.

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

Delphi 本身包含几个这样做的例子.它们在您的 Samples 文件夹中;确切的位置取决于您的 Delphi 和 Windows 版本.例如,在 Win7 上的 XE6 中,请参阅

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:UsersPublicPublic DocumentsEmbarcaderoStudio14.0SamplesObject PascalVCLToolsAPIEditor KeyBinding"

"C:UsersPublicPublic DocumentsEmbarcaderoStudio14.0SamplesObject PascalVCLToolsAPIEditor KeyBinding"

在 XE5 中,它在

In XE5, it's in

C:UsersPublicDocumentsRAD Studio12.0SamplesDelphiVCLToolsAPIEditor KeyBinding".

"C:UsersPublicDocumentsRAD Studio12.0SamplesDelphiVCLToolsAPIEditor KeyBinding".

在 D2007 中查看

And in D2007 look in

C:UsersPublicDocumentsRAD Studio5.0DemosDelphiWin32VCLWin32ToolsAPIEditor KeyBinding".

"C:UsersPublicDocumentsRAD Studio5.0DemosDelphiWin32VCLWin32ToolsAPIEditor KeyBinding".

话虽如此,Delphi 代码编辑器中 Ins 的行为与我遇到过的每个文本编辑器中的键的行为相同(包括那些简单的,如记事本).exe),可以追溯到 MS-DOS 和 Edit.exe 的时代.如果其他人有可能使用您的 IDE 副本,那么如果它不像标准文本编辑器,那么您真的会打勾/

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/

这篇关于我可以在 Delphi IDE 中禁用 Insert 键吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆