在 IDA 视图中,我经常使用 Escape 键将光标移回之前的位置。但是,有时我会在焦点仍在另一个视图上时不小心按下 Escape 键,这会导致该视图关闭。每次发生这种情况时重新打开和定位受影响的视图可能很麻烦。 有没有办法仅对特定视图禁用 Escape 键?
当我按下 Escape 键时,我可以阻止 IDA 关闭视图吗?
逆向工程
艾达
2021-07-04 19:57:15
1个回答
事实证明这是可能的。
导航到 IDA 程序目录并打开cfg\idagui.cfg. 如果向下滚动,您应该看到如下内容:
// Built-in window ids
#define BWN_EXPORTS 0x00000001 // exports
#define BWN_IMPORTS 0x00000002 // imports
#define BWN_NAMES 0x00000004 // names
... several lines removed ...
#define BWN_DISASMS 0x20000000 // disassembly views
#define BWN_DUMPS 0x40000000 // hex dumps
#define BWN_NOTEPAD 0x80000000 // notepad
CLOSED_BY_ESC = 0x9A0FFFFF // All windows that are closed by Esc.
// If a windows is not closed by Esc,
// it can be closed by Alt-F3.
// (disasm/hexdump/navband can not be closed by Esc)
从CLOSED_BY_ESC变量中取消设置对应于您不想用 Escape 键关闭的视图的位。然后保存并重新打开 IDA。