changing keyboard layout as go exec.

This commit is contained in:
Miroslav Šedivý 2021-01-12 23:48:15 +01:00
parent 4844225a0b
commit 7f18c5842d
7 changed files with 14 additions and 29 deletions

View file

@ -22,7 +22,11 @@ func (h *RoomHandler) keyboardLayoutSet(w http.ResponseWriter, r *http.Request)
return
}
h.desktop.SetKeyboardLayout(data.Layout)
err := h.desktop.SetKeyboardLayout(data.Layout)
if err != nil{
utils.HttpInternalServerError(w, "Unable to change keyboard layout.")
return
}
utils.HttpSuccess(w)
}