dylman123 / final-captions-pro

A MacOS app which automatically generates customisable open captions in Final Cut Pro X
1 stars 0 forks source link

Implement MacOS keyboard shortcuts #39

Closed dylman123 closed 4 years ago

dylman123 commented 4 years ago

The use of keyboard shortcuts will allow for a TextField or TextEditor input for the caption text!

dylman123 commented 4 years ago

Look at implementing a mix of NSWindow and HotKeys. Maybe this will allow for greater customisation of keyboard presses...?

dylman123 commented 4 years ago

maybe put all keyboard presses in NSWindow except for the return key which can override the text field with HotKey??

Also can finesse the clicking into the textField based on the current app state mode.

dylman123 commented 4 years ago

Figured out that it's better to have most keyboard shortcuts handled by NSWindow. Then to override part of the TextField, I used the onCommit arg. And for some extra control, I used HotKeys for escape and tab keys.