Skip to content

remnov/pock-arrow-key

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Right arrow widget for pock

Simple right arrow key widget for Pock based on ESC key widget from https://github.com/pock/esc-widget

Purpose

This handy widget was created to resolve problem with not working physical button on mac book pro.

Make Your own key widget

This project could be used as base for any other key. Simply edit in ArrowWidget hex key code to another one if needed. Replace also title to other one with would be displayed on button.

private let key: KeySender = KeySender(keyCode: Int32(0x7C), isAux: false)
        
        required init() {
            self.view = PKButton(title: "->", maxWidth: 64, target: self, action: #selector(tap))
        }

Ex. -> and hex code 0x7C

Key code could be found here: https://eastmanreference.com/complete-list-of-applescript-key-codes

Remeber to convert decimal code to hex.

Preview

Screenshot 2023-02-01 at 15 51 42

About

Simple pock widget with right arrow button which could be used instead of physical one.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors