changing how assertions access instance variables to make them non-static-like (#37)
Changing how assertions access instance variables
This commit is contained in:
@@ -1,13 +1,14 @@
|
||||
import {UhkBuffer} from '../UhkBuffer';
|
||||
import {keyActionType, KeyActionId, KeyAction} from './KeyAction';
|
||||
import {KeyModifiers} from './KeystrokeModifiersAction';
|
||||
import {assertUInt8} from '../assert';
|
||||
|
||||
export class KeystrokeWithModifiersAction extends KeyAction {
|
||||
|
||||
// @assertUInt8
|
||||
@assertUInt8
|
||||
modifierMask: number;
|
||||
|
||||
// @assertUInt8
|
||||
@assertUInt8
|
||||
scancode: number;
|
||||
|
||||
_fromJsObject(jsObject: any): KeystrokeWithModifiersAction {
|
||||
|
||||
Reference in New Issue
Block a user