Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
4ec8707596 | |||
69e1b52e72 | |||
a5ff175913 | |||
f84e7c48ae |
4
package-lock.json
generated
4
package-lock.json
generated
@ -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",
|
||||||
|
@ -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",
|
||||||
|
@ -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() {
|
||||||
|
Reference in New Issue
Block a user