-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFunctionMap.swift
More file actions
35 lines (33 loc) · 849 Bytes
/
FunctionMap.swift
File metadata and controls
35 lines (33 loc) · 849 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//
// FunctionMap.swift
// Caffeinator
//
// Created by aaplmath on 1/2/20.
// Copyright © 2020 aaplmath. All rights reserved.
//
import AppKit
import HotKey
class FunctionMap {
static let map: [Key: Int] = [
.f1: NSF1FunctionKey,
.f2: NSF2FunctionKey,
.f3: NSF3FunctionKey,
.f4: NSF4FunctionKey,
.f5: NSF5FunctionKey,
.f6: NSF6FunctionKey,
.f7: NSF7FunctionKey,
.f8: NSF8FunctionKey,
.f9: NSF9FunctionKey,
.f10: NSF10FunctionKey,
.f11: NSF11FunctionKey,
.f12: NSF12FunctionKey,
.f13: NSF13FunctionKey,
.f14: NSF14FunctionKey,
.f15: NSF15FunctionKey,
.f16: NSF16FunctionKey,
.f17: NSF17FunctionKey,
.f18: NSF18FunctionKey,
.f19: NSF19FunctionKey,
.f20: NSF20FunctionKey
]
}