mirror of
https://github.com/m1k1o/neko.git
synced 2025-06-01 10:22:35 +02:00
changing keyboard layout as go exec.
This commit is contained in:
parent
4844225a0b
commit
7f18c5842d
7 changed files with 14 additions and 29 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue