Hi folks,
I have made my first macros and they are only half successful.
I want to make END trigger CMD --> and HOME trigger CMD <-- so the cursor goes to the beginning or end of the line that I am on.
I created the trigger by pressing the key (in this case End) and the action by pressing the CMD --> keys.
However, when I presss the End key the cursor goes to the end of the line (yay) but the page scrolls down. When I scroll the page back up, the cursor is where I want it at the end of the line that it was on.
I captured what happened with Karabiner event viewer. Here is what it captured:
eventType:KeyDown code:0x77 name:end flags:Fn misc:
eventType:FlagsChanged code:0x37 name:left_command flags:Cmd Fn misc:
eventType:KeyDown code:0x7c name:right_arrow flags:Cmd Fn misc:
eventType:KeyUp code:0x7c name:right_arrow flags:Cmd Fn misc:
eventType:FlagsChanged code:0x37 name:left_command flags: misc:
eventType:KeyUp code:0x77 name:end flags:Fn misc:
It looks like the end key is not being intercepted and was allowed to performed its normal action. Then KM inserted the macro actions
I get the same behavior from the home key but in revers. Scrolls the page up and puts the cursor at the beginning of the line it was on.
Is there a way to create a macro so that it does not allow the OS to see and act on the triggering key?