Skip to content

Commit a2466fe

Browse files
committed
adding keydown effects for class and vbinding pop up
1 parent 0259939 commit a2466fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/right-sidebar/HTMLQueue.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,15 @@ Description:
6363
<q-form autofocus v-on:submit.prevent="submitClass">
6464
<p class="title">Add Class Name:</p>
6565
<q-input label="Add your class here" filled dark autofocus true hide-bottom-space v-model="classText"
66-
@keyup.enter="submitClass"></q-input>
66+
@keydown.enter="submitClass(classText, this.activeHTML)" />
6767
<q-btn id="comp-btn" class="sidebar-btn" color="secondary" label="Submit Attribute"
6868
:disable="classText.length > 0 ? false : true" @click="submitClass(classText, this.activeHTML)" />
6969
</q-form>
7070
<q-form autofocus v-on:submit.prevent="addBinding">
7171
<p class="title">Add Binding:</p>
7272

7373
<q-input label="Add two way binding here" filled dark autofocus true hide-bottom-space v-model="bindingText"
74-
@keyup.enter="addBinding"></q-input>
74+
@keydown.enter="addBinding(bindingText, this.activeHTML)"></q-input>
7575
<q-btn id="comp-btn" class="sidebar-btn" color="secondary" label="Add Binding"
7676
:disable="bindingText.length > 0 ? false : true" @click="addBinding(bindingText, this.activeHTML)">
7777
</q-btn>

0 commit comments

Comments
 (0)