mirror of
https://github.com/rbreaves/kinto.git
synced 2025-08-02 09:06:40 +02:00
- Fixes on paste in terminals for windows
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user