Skip to content

Commit 272e89a

Browse files
Merge pull request #21 from oslabs-beta/katherine/addenter
Katherine/addenter
2 parents c80be02 + a2466fe commit 272e89a

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
@@ -64,15 +64,15 @@ Description:
6464
<q-form autofocus v-on:submit.prevent="submitClass">
6565
<p class="title">Add Class Name:</p>
6666
<q-input label="Add your class here" filled dark autofocus true hide-bottom-space v-model="classText"
67-
@keyup.enter="submitClass"></q-input>
67+
@keydown.enter="submitClass(classText, this.activeHTML)" />
6868
<q-btn id="comp-btn" class="sidebar-btn" color="secondary" label="Submit Attribute"
6969
:disable="classText.length > 0 ? false : true" @click="submitClass(classText, this.activeHTML)" />
7070
</q-form>
7171
<q-form autofocus v-on:submit.prevent="addBinding">
7272
<p class="title">Add Binding:</p>
7373

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

0 commit comments

Comments
 (0)