Kentzo / ShortcutRecorder

The best control to record shortcuts on macOS, written in ObjC with Swift in mind
Other
575 stars 115 forks source link

Use auxiliary views for the buttons #116

Open Kentzo opened 4 years ago

Kentzo commented 4 years ago

Currently the control draws its auxiliary elements in its implementation of drawRect. It also handles dirtying and accessibility. Accessibility in particularly does not work very well in such approach (e.g. a user cannot navigate to these aux elements).

Both clear and delete buttons should be implemented as either custom views or NSImageView's (if it's possible to set up accessibility properly).

If custom subview path is taken, it should implement both -updateLayer and -drawRect: