diff --git a/src/app.module.ts b/src/app.module.ts index c28f2a6a..813841e0 100644 --- a/src/app.module.ts +++ b/src/app.module.ts @@ -15,7 +15,6 @@ import { KeymapAddComponent, KeymapComponent, KeymapHeaderComponent } from './co import { LayersComponent } from './components/layers'; import { MacroActionEditorComponent, - MacroAddComponent, MacroDelayTabComponent, MacroEditComponent, MacroHeaderComponent, @@ -115,7 +114,6 @@ const storeConfig = { MacroEditComponent, MacroListComponent, MacroHeaderComponent, - MacroAddComponent, MacroItemComponent, MacroActionEditorComponent, MacroDelayTabComponent, diff --git a/src/components/macro/action-editor/tab/text/macro-text.component.html b/src/components/macro/action-editor/tab/text/macro-text.component.html index ab8590ad..307abc7a 100644 --- a/src/components/macro/action-editor/tab/text/macro-text.component.html +++ b/src/components/macro/action-editor/tab/text/macro-text.component.html @@ -1,5 +1,5 @@

Type text

Input the text you want to type with this macro action.

- +
\ No newline at end of file diff --git a/src/components/macro/action-editor/tab/text/macro-text.component.ts b/src/components/macro/action-editor/tab/text/macro-text.component.ts index 11d3a592..c68720ee 100644 --- a/src/components/macro/action-editor/tab/text/macro-text.component.ts +++ b/src/components/macro/action-editor/tab/text/macro-text.component.ts @@ -25,4 +25,8 @@ export class MacroTextTabComponent implements AfterViewInit { this.renderer.invokeElementMethod(this.input.nativeElement, 'focus'); } + onTextChange() { + this.macroAction.text = this.input.nativeElement.value; + } + } diff --git a/src/components/macro/add/macro-add.component.html b/src/components/macro/add/macro-add.component.html deleted file mode 100644 index 2aec5781..00000000 --- a/src/components/macro/add/macro-add.component.html +++ /dev/null @@ -1,7 +0,0 @@ -
-

- - Add macro -

-
-To be done... \ No newline at end of file diff --git a/src/components/macro/add/macro-add.component.scss b/src/components/macro/add/macro-add.component.scss deleted file mode 100644 index e69de29b..00000000 diff --git a/src/components/macro/add/macro-add.component.ts b/src/components/macro/add/macro-add.component.ts deleted file mode 100644 index 385de43c..00000000 --- a/src/components/macro/add/macro-add.component.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - selector: 'macro-add', - template: require('./macro-add.component.html'), - styles: [require('./macro-add.component.scss')] -}) -export class MacroAddComponent { - constructor() { } -} diff --git a/src/components/macro/edit/macro-edit.component.html b/src/components/macro/edit/macro-edit.component.html index 2046d149..245db33a 100644 --- a/src/components/macro/edit/macro-edit.component.html +++ b/src/components/macro/edit/macro-edit.component.html @@ -1,5 +1,8 @@