Compare commits

..

4 Commits

Author SHA1 Message Date
4ec8707596 2.0.12 2022-04-21 19:16:07 +02:00
69e1b52e72 fix(core): update 2022-04-21 19:16:06 +02:00
a5ff175913 2.0.11 2022-04-21 19:05:53 +02:00
f84e7c48ae fix(core): update 2022-04-21 19:05:52 +02:00
3 changed files with 6 additions and 3 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "@designestate/dees-domtools", "name": "@designestate/dees-domtools",
"version": "2.0.10", "version": "2.0.12",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@designestate/dees-domtools", "name": "@designestate/dees-domtools",
"version": "2.0.10", "version": "2.0.12",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@apiglobal/typedrequest": "^2.0.3", "@apiglobal/typedrequest": "^2.0.3",

View File

@ -1,6 +1,6 @@
{ {
"name": "@designestate/dees-domtools", "name": "@designestate/dees-domtools",
"version": "2.0.10", "version": "2.0.12",
"private": false, "private": false,
"description": "tools to simplify complex css structures", "description": "tools to simplify complex css structures",
"main": "dist_ts/index.js", "main": "dist_ts/index.js",

View File

@ -138,12 +138,15 @@ export class Keyboard {
this.startListening(); this.startListening();
} }
public keyEnum = Key;
public on(keys: Key[] | KeyCombo[]) { public on(keys: Key[] | KeyCombo[]) {
const combos = this.toCombos(keys); const combos = this.toCombos(keys);
const subject = new plugins.smartrx.rxjs.Subject<KeyboardEvent>(); const subject = new plugins.smartrx.rxjs.Subject<KeyboardEvent>();
combos.forEach((combo) => { combos.forEach((combo) => {
this.registerComboCallback(combo, subject); this.registerComboCallback(combo, subject);
}); });
return subject;
} }
public startListening() { public startListening() {