add new WS keyboard event

This commit is contained in:
Miroslav Šedivý
2020-06-16 00:55:14 +02:00
parent 56bd6acf10
commit 6206fbbadd
7 changed files with 39 additions and 0 deletions

View File

@ -133,5 +133,13 @@ export const actions = actionTree(
$client.sendMessage(EVENT.ADMIN.GIVE, { id: member.id })
},
changeKeyboard({ getters }) {
if (!accessor.connected || !getters.hosting) {
return
}
$client.sendMessage(EVENT.CONTROL.KEYBOARD, { layout: accessor.settings.keyboard_layout })
}
},
)