(mod: any, subtitle: string, arg: string, valid: boolean = true)
| 107 | } |
| 108 | |
| 109 | setMod(mod: any, subtitle: string, arg: string, valid: boolean = true): this { |
| 110 | if (!["shift", "fn", "ctrl", "alt", "cmd"].some((t) => t === mod)) { |
| 111 | return this; |
| 112 | } |
| 113 | this.mods[mod] = { subtitle, arg, valid }; |
| 114 | return this; |
| 115 | } |
| 116 | |
| 117 | setCmd(subtitle: string, arg: string, valid: boolean = true): this { |
| 118 | return this.setMod("cmd", subtitle, arg, valid); |