url editor keyboard events

This commit is contained in:
Dmitry Belyaev 2021-06-05 13:30:39 +03:00
parent ab977666e0
commit ec4f5e2e4c
Signed by: b4tman
GPG Key ID: 41A00BF15EA7E5F3

View File

@ -1,7 +1,13 @@
<template>
<form @submit.prevent="submit">
<div class="input-group shadow" role="group">
<input type="text" v-model="url" class="form-control" />
<input
type="text"
v-model.lazy="url"
@keyup.enter="submit"
@keyup.esc="cancel"
class="form-control"
/>
<button
type="submit"
class="btn btn-sm btn-outline-primary"