0

用于 MSYS2 的mintty 2.8.5 用于Shift+Insert粘贴。但是在我的笔记本电脑上,Insertbtn 与Deletekey 的结合很不愉快,即,要实际粘贴 mintty,我需要按Shift+Fn+Delete,这很烦人。

是否可以将薄荷糊操作绑定到Shift+Delete

4

1 回答 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 对其进行了测试

于 2019-03-26T11:49:47.763 回答