Skip to content

Commit

Permalink
feat: trigger action on enter
Browse files Browse the repository at this point in the history
  • Loading branch information
thepiwo committed Dec 10, 2024
1 parent b27cd6e commit 3d9f5c3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/Call.vue
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
class="w-full p-2"
type="text"
placeholder="function"
@keydown.enter="callContract"
/>
</div>
<div class="mx-2 w-2/3">
Expand All @@ -101,6 +102,7 @@
class="w-full p-2"
type="text"
placeholder="comma separated args"
@keydown.enter="callContract"
/>
</div>
</div>
Expand Down
2 changes: 2 additions & 0 deletions src/components/CallStatic.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
class="w-full p-2"
type="text"
placeholder="function"
@keydown.enter="callContractStatic"
/>
</div>
<div class="mx-2 w-1/3">
Expand All @@ -36,6 +37,7 @@
class="w-full p-2"
type="text"
placeholder="comma separated args"
@keydown.enter="callContractStatic"
/>
</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions src/components/CodeAci.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
<input
v-model="contractAddress"
class="mt-2 rounded-l-full bg-black hover:bg-purple-500 text-white p-2 px-4"
@keydown.enter="initializeContractFromAciWithCheck"
/>
<button
class="mt-2 mr-2 rounded-r-full bg-black hover:bg-purple-500 text-white p-2 px-4"
Expand Down
1 change: 1 addition & 0 deletions src/components/Deploy.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
class="w-full p-2"
type="text"
placeholder="comma separated args"
@keydown.enter="deployContract"
/>
</div>
</div>
Expand Down

0 comments on commit 3d9f5c3

Please sign in to comment.