mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
commit
408fc29314
@ -32,6 +32,7 @@ class FilterField extends TemplateView {
|
|||||||
placeholder: options?.label,
|
placeholder: options?.label,
|
||||||
"aria-label": options?.label,
|
"aria-label": options?.label,
|
||||||
autocomplete: options?.autocomplete,
|
autocomplete: options?.autocomplete,
|
||||||
|
enterkeyhint: 'search',
|
||||||
name: options?.name,
|
name: options?.name,
|
||||||
onInput: event => options.set(event.target.value),
|
onInput: event => options.set(event.target.value),
|
||||||
onKeydown: event => {
|
onKeydown: event => {
|
||||||
|
@ -28,6 +28,7 @@ export class MessageComposer extends TemplateView {
|
|||||||
render(t, vm) {
|
render(t, vm) {
|
||||||
this._input = t.input({
|
this._input = t.input({
|
||||||
placeholder: vm.isEncrypted ? "Send an encrypted message…" : "Send a message…",
|
placeholder: vm.isEncrypted ? "Send an encrypted message…" : "Send a message…",
|
||||||
|
enterkeyhint: 'send',
|
||||||
onKeydown: e => this._onKeyDown(e),
|
onKeydown: e => this._onKeyDown(e),
|
||||||
onInput: () => vm.setInput(this._input.value),
|
onInput: () => vm.setInput(this._input.value),
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user