KeyHandlerInput // Add refs for charCode / keyCode intel.

This commit is contained in:
ShikiSuen 2022-02-23 14:30:35 +08:00
parent b8aea8e110
commit 5c5565418f
1 changed files with 2 additions and 0 deletions

View File

@ -19,6 +19,7 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR TH
import Cocoa
// KeyCodes: https://eastmanreference.com/complete-list-of-applescript-key-codes
enum KeyCode: UInt16 {
case none = 0
case enter = 76
@ -33,6 +34,7 @@ enum KeyCode: UInt16 {
case delete = 117
}
// CharCodes: https://theasciicode.com.ar/ascii-control-characters/horizontal-tab-ascii-code-9.html
enum CharCode: UInt16 {
case space = 32
case backSpace = 8