Default attributes warning

This commit is contained in:
barsdeveloper
2022-05-01 12:54:55 +02:00
parent fcf1bbf32c
commit 2617e15691
5 changed files with 51 additions and 26 deletions

View File

@@ -15,6 +15,11 @@ export default class KeyBindingEntity extends IEntity {
}
constructor(options = {}) {
options.ActionName = options.ActionName ?? ""
options.bShift = options.bShift ?? false
options.bCtrl = options.bCtrl ?? false
options.bAlt = options.bAlt ?? false
options.bCmd = options.bCmd ?? false
super(options)
/** @type {String} */ this.ActionName
/** @type {Boolean} */ this.bShift