Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A lot of changes to text-navigation. Also Chrome-support #5

Merged
merged 1 commit into from
Aug 19, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 58 additions & 8 deletions MacKeyBoardNorwegianWithMediaKeys.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ RAlt & F7::SendInput {Media_Prev}
RAlt & F8::SendInput {Media_Play_Pause}
RAlt & F9::SendInput {Media_Next}

F10::SendInput {Volume_Mute}
F11::SendInput {Volume_Down}
F12::SendInput {Volume_Up}
F10::SendInput {Volume_Mute}
F11::SendInput {Volume_Down}
F12::SendInput {Volume_Up}

; swap left command/windows key with left alt
;LWin::LAlt
Expand All @@ -51,14 +51,10 @@ F13::SendInput {PrintScreen}
F14::SendInput {ScrollLock}
; F15::SendInput {Pause}

;Allow Command +Left/Right to be used as Home/End
Lwin & Left::SendInput {Home}
Lwin & Right::SendInput {End}


; Delete files
RWin & BS::SendInput {Delete}
LWin & BS::SendInput {Delete}

; --------------------------------------------------------------
; OS X system shortcuts
; --------------------------------------------------------------
Expand Down Expand Up @@ -113,6 +109,7 @@ LWin & BS::SendInput {Delete}

; Remap Windows + Tab to Alt + Tab.
Lwin & Tab::AltTab
;#^+::SendInput +{AltTab}

; minimize windows
#m::WinMinimize,a
Expand Down Expand Up @@ -179,3 +176,56 @@ Shift & '::SendInput {NumpadMult}

; Map Alt + N to ~
!n::SendInput {~}


; OSX NAVIGATION AND SELECTION WITH CMD
#Up::Send {ctrl down}{Home}{ctrl up}
#Down::Send {ctrl down}{End}{ctrl up}
#+Up::Send {ctrl down}{shift down}{Home}{shift up}{ctrl up}
#+Down::Send {ctrl down}{shift down}{End}{shift up}{ctrl up}
#Left::Send {Home}
#Right::Send {End}
#+Left::Send {shift down}{Home}{shift up}
#+Right::Send {shift down}{End}{shift up}

; OSX NAVIGATION AND SELECTION WITH ALT
!Left::Send {ctrl down}{Left}{ctrl up}
!Right::Send {ctrl down}{Right}{ctrl up}
!+Left::Send {ctrl down}{shift down}{Left}{shift up}{ctrl up}
!+Right::Send {ctrl down}{shift down}{Right}{shift up}{ctrl up}

;Allow Command +Left/Right to be used as Home/End
;Lwin & Left::SendInput {Home}
;Lwin & Right::SendInput {End}


; --------------------------------------------------------------
; Application specific
; --------------------------------------------------------------

; Google Chrome
#IfWinActive ahk_class Chrome_WidgetWin_1

; Show Web Developer Tools with cmd + alt + i
#!i::Send {F12}

; Show source code with cmd + alt + u
#!u::Send ^u

;New Tab
#t::Send ^t

;Close Tab
#w::Send ^w

;Hacking copy paste in Chrome
#c::Send ^c
#v::Send ^v
#x::Send ^x

;Focus URL-field, not lock PC
;^l::return
;#l::SendInput ^{l}


#IfWinActive
56 changes: 52 additions & 4 deletions MacKeyboardNorwegian.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,6 @@ F13::SendInput {PrintScreen}
F14::SendInput {ScrollLock}
; F15::SendInput {Pause}

;Allow Command +Left/Right to be used as Home/End
Lwin & Left::SendInput {Home}
Lwin & Right::SendInput {End}

; Delete files
RWin & BS::SendInput {Delete}
LWin & BS::SendInput {Delete}
Expand Down Expand Up @@ -181,3 +177,55 @@ Shift & '::SendInput {NumpadMult}

; Map Alt + N to ~
!n::SendInput {~}

; OSX NAVIGATION AND SELECTION WITH CMD
#Up::Send {ctrl down}{Home}{ctrl up}
#Down::Send {ctrl down}{End}{ctrl up}
#+Up::Send {ctrl down}{shift down}{Home}{shift up}{ctrl up}
#+Down::Send {ctrl down}{shift down}{End}{shift up}{ctrl up}
#Left::Send {Home}
#Right::Send {End}
#+Left::Send {shift down}{Home}{shift up}
#+Right::Send {shift down}{End}{shift up}

; OSX NAVIGATION AND SELECTION WITH ALT
!Left::Send {ctrl down}{Left}{ctrl up}
!Right::Send {ctrl down}{Right}{ctrl up}
!+Left::Send {ctrl down}{shift down}{Left}{shift up}{ctrl up}
!+Right::Send {ctrl down}{shift down}{Right}{shift up}{ctrl up}

;Allow Command +Left/Right to be used as Home/End
;Lwin & Left::SendInput {Home}
;Lwin & Right::SendInput {End}


; --------------------------------------------------------------
; Application specific
; --------------------------------------------------------------

; Google Chrome
#IfWinActive ahk_class Chrome_WidgetWin_1

; Show Web Developer Tools with cmd + alt + i
#!i::Send {F12}

; Show source code with cmd + alt + u
#!u::Send ^u

;New Tab
#t::Send ^t

;Close Tab
#w::Send ^w

;Hacking copy paste in Chrome
#c::Send ^c
#v::Send ^v
#x::Send ^x

;Focus URL-field, not lock PC
;^l::return
;#l::SendInput ^{l}


#IfWinActive