client: autofocus on search input field

This should better replicate the previous behaviour of the text input dialog.
This commit is contained in:
Johann150 2022-11-27 00:13:33 +01:00
parent cb65e1556f
commit 1f037e18d6
Signed by untrusted user: Johann150
GPG key ID: 9EE6577A2A06F8F1

View file

@ -4,7 +4,7 @@
<MkSpacer :content-max="800"> <MkSpacer :content-max="800">
<MkFolder> <MkFolder>
<template #header>{{ i18n.ts.search }}</template> <template #header>{{ i18n.ts.search }}</template>
<MkInput v-model="query" class="input" tabindex="1" @keydown="keydown"> <MkInput v-model="query" :autofocus="true" class="input" tabindex="1" @keydown="keydown">
<template #prefix><i class="fas fa-magnifying-glass"></i></template> <template #prefix><i class="fas fa-magnifying-glass"></i></template>
<template v-if="tab === 'users'" #label>{{ i18n.ts.username }}</template> <template v-if="tab === 'users'" #label>{{ i18n.ts.username }}</template>
<template v-if="tab === 'all'" #caption>Try entering a URL or user handle!</template> <template v-if="tab === 'all'" #caption>Try entering a URL or user handle!</template>