mirror of
https://github.com/rbreaves/kinto.git
synced 2025-08-03 01:26:40 +02:00
- Revised Back/Forward for browsers on Windows, added Undo closed tab. #348
This commit is contained in:
@@ -349,10 +349,20 @@ GroupAdd, intellij, ahk_exe idea64.exe
|
|||||||
#if
|
#if
|
||||||
#if winactive("ahk_group browsers")
|
#if winactive("ahk_group browsers")
|
||||||
$^Left::
|
$^Left::
|
||||||
Gosub GetSelectedTextLeft
|
if(blinking()){
|
||||||
|
Send, {Home}
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
Send, !{Left}
|
||||||
|
}
|
||||||
Return
|
Return
|
||||||
$^Right::
|
$^Right::
|
||||||
Gosub GetSelectedTextRight
|
if(blinking()){
|
||||||
|
Send, {End}
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
Send, !{Right}
|
||||||
|
}
|
||||||
Return
|
Return
|
||||||
#if
|
#if
|
||||||
$^+Left::Send +{Home}
|
$^+Left::Send +{Home}
|
||||||
@@ -479,6 +489,14 @@ GroupAdd, intellij, ahk_exe idea64.exe
|
|||||||
; Dev Tools
|
; Dev Tools
|
||||||
!^i::send {Ctrl Down}{Shift Down}i{Shift Up}{Ctrl Up}
|
!^i::send {Ctrl Down}{Shift Down}i{Shift Up}{Ctrl Up}
|
||||||
!^j::send {Ctrl Down}{Shift Down}j{Shift Up}{Ctrl Up}
|
!^j::send {Ctrl Down}{Shift Down}j{Shift Up}{Ctrl Up}
|
||||||
|
; Reopen closed tab or Undo text field
|
||||||
|
$^z::
|
||||||
|
if(blinking()){
|
||||||
|
Send, ^z
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
Send, ^+t
|
||||||
|
}
|
||||||
; Open preferences
|
; Open preferences
|
||||||
#IfWinActive ahk_exe firefox.exe
|
#IfWinActive ahk_exe firefox.exe
|
||||||
^,::send, {Ctrl Down}t{Ctrl Up}about:preferences{Enter}
|
^,::send, {Ctrl Down}t{Ctrl Up}about:preferences{Enter}
|
||||||
@@ -771,40 +789,20 @@ Send {RShift up}
|
|||||||
Send {LShift up}
|
Send {LShift up}
|
||||||
return
|
return
|
||||||
|
|
||||||
GetSelectedTextLeft:
|
blinking(){
|
||||||
ClipSaved := ClipboardAll
|
ClipSaved := ClipboardAll
|
||||||
clipboard := ""
|
clipboard := ""
|
||||||
Send, {Left}{Left}{Right}
|
status := False
|
||||||
Send, +{Right}
|
Send, {Left}{Left}{Right}
|
||||||
Send, ^c
|
Send, +{Right}
|
||||||
Send, {Left}
|
Send, ^c
|
||||||
ClipWait, 0.2
|
Send, {Left}
|
||||||
if(clipboard == "" ){
|
ClipWait, 0.2
|
||||||
Send, !{Left}
|
if(clipboard != "" ){
|
||||||
|
status := True
|
||||||
|
}
|
||||||
|
Sleep, 100
|
||||||
|
clipboard := ClipSaved
|
||||||
|
ClipSaved := ""
|
||||||
|
return status
|
||||||
}
|
}
|
||||||
else{
|
|
||||||
Send, {Home}
|
|
||||||
}
|
|
||||||
Sleep, 100
|
|
||||||
clipboard := ClipSaved
|
|
||||||
ClipSaved := ""
|
|
||||||
return
|
|
||||||
|
|
||||||
GetSelectedTextRight:
|
|
||||||
ClipSaved := ClipboardAll
|
|
||||||
clipboard := ""
|
|
||||||
Send, {Left}{Left}{Right}
|
|
||||||
Send, +{Right}
|
|
||||||
Send, ^c
|
|
||||||
Send, {Left}
|
|
||||||
ClipWait, 0.2
|
|
||||||
if(clipboard == "" ){
|
|
||||||
Send, !{Right}
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
Send, {End}
|
|
||||||
}
|
|
||||||
Sleep, 100
|
|
||||||
clipboard := ClipSaved
|
|
||||||
ClipSaved := ""
|
|
||||||
return
|
|
Reference in New Issue
Block a user