From 8f22bc63ff9b183c07d36a0703822866da29eb1d Mon Sep 17 00:00:00 2001 From: Ben Reaves Date: Mon, 8 Jun 2020 12:23:50 -0500 Subject: [PATCH] - Fixes on paste in terminals for windows --- windows/mac_kinto.ahk | 9 ++------- windows/win_kinto.ahk | 30 ++++++------------------------ 2 files changed, 8 insertions(+), 31 deletions(-) diff --git a/windows/mac_kinto.ahk b/windows/mac_kinto.ahk index 5dfaecb..4443889 100644 --- a/windows/mac_kinto.ahk +++ b/windows/mac_kinto.ahk @@ -148,19 +148,14 @@ $^+Right::Send +{End} ; Paste ^v:: - If not WinActive("ahk_group ConEmu") && not WinActive("ahk_exe cmd.exe"){ - SetKeyDelay -1 - Send {Blind}{LShift down}{v DownTemp} + If WinActive("ahk_group posix"){ + Send {Blind}{Shift down}v{Shift up} } else{ Send {Blind}v } return - ^v up:: - SetKeyDelay -1 - Send {Blind}{v Up}{LShift Up} - return #If #IfWinActive ahk_group posix diff --git a/windows/win_kinto.ahk b/windows/win_kinto.ahk index c690358..8a7ce58 100644 --- a/windows/win_kinto.ahk +++ b/windows/win_kinto.ahk @@ -137,16 +137,6 @@ $^+Right::Send +{End} #If #IfWinActive ahk_group terminals - ; Sigint Interrupt - ; $#c::Send {Ctrl down}c{Ctrl up} - - ; $#c up::Send {c up}{Ctrl up} - - ; #c up:: - ; SetKeyDelay -1 - ; Send {c Up}{Ctrl up} - ; return - ; Copy ^c:: SetKeyDelay -1 @@ -162,21 +152,13 @@ $^+Right::Send +{End} $#c::Send {Ctrl down}c{Ctrl up} ; Paste - *v:: - if (GetKeyState("LCtrl")){ - If not WinActive("ahk_group ConEmu") && not WinActive("ahk_exe cmd.exe"){ - SetKeyDelay -1 - Send {Blind}{LShift down}{v DownTemp} - } - else{ - Send {Blind}v - } + ^v:: + If WinActive("ahk_group posix"){ + Send {Blind}{Shift down}v{Shift up} + } + else{ + Send {Blind}v } - return - - ^v up:: - SetKeyDelay -1 - Send {Blind}{v Up}{LShift Up} return #If