更改薄荷键盘快捷键

问题描述 投票:0回答:1

MSYS2的mintty 2.8.5使用Shift + Insert进行粘贴。但是在我的笔记本电脑上,插入btn不幸地与删除键结合,即实际粘贴薄荷我需要按Shift + Fn + Delete,这很烦人。

是否可以将精简的粘贴操作绑定到Shift + Delete?

msys2 mintty
1个回答
1
投票

我能想到的唯一方法是使用类似于的补丁

diff --git a/src/wininput.c b/src/wininput.c
index 20f2f3e..0f2958c 100644
--- a/src/wininput.c
+++ b/src/wininput.c
@@ -2033,7 +2033,8 @@ win_key_down(WPARAM wp, LPARAM lp)
       goto skip_shortcuts;

     // Copy&paste
-    if (cfg.clip_shortcuts && key == VK_INSERT && mods && !alt) {
+    if (cfg.clip_shortcuts && (key == VK_INSERT || key == VK_DELETE)
+        && mods && !alt) {
       if (ctrl)
         term_copy();
       if (shift)

我用https://github.com/mintty/mintty的rev 0e65eec39测试了它

© www.soinside.com 2019 - 2024. All rights reserved.