mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
changing keyboard layout as go exec.
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user