mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
revert 'workaround for #45.'
This commit is contained in:
parent
07d111af36
commit
c54e8327ac
@ -245,14 +245,7 @@ func (manager *RemoteManager) GetScreenSize() *types.ScreenSize {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (manager *RemoteManager) SetKeyboardLayout(layout string) {
|
func (manager *RemoteManager) SetKeyboardLayout(layout string) {
|
||||||
// Workaround for https://github.com/m1k1o/neko/issues/45
|
exec.Command("setxkbmap", layout).Run()
|
||||||
// When pressing `shift` + `,` instead of `<` comes `>`.
|
|
||||||
variant := ""
|
|
||||||
// if layout == "us" {
|
|
||||||
// variant = "mac" // TODO: Test all keys.
|
|
||||||
// }
|
|
||||||
|
|
||||||
exec.Command("setxkbmap", layout, variant).Run()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (manager *RemoteManager) SetKeyboardModifiers(NumLock int, CapsLock int, ScrollLock int) {
|
func (manager *RemoteManager) SetKeyboardModifiers(NumLock int, CapsLock int, ScrollLock int) {
|
||||||
|
Loading…
Reference in New Issue
Block a user