Fix shift/caps behavior for keyboard
This commit is contained in:
parent
32fc71691e
commit
d52f0b3207
|
@ -79,7 +79,7 @@ class WuttaKeyboard(WuttaControl):
|
||||||
|
|
||||||
for key, button in self.keys.items():
|
for key, button in self.keys.items():
|
||||||
if key in self.caps_map:
|
if key in self.caps_map:
|
||||||
if self.caps_lock:
|
if self.caps_lock or self.shift:
|
||||||
button.content.value = self.caps_map[key]
|
button.content.value = self.caps_map[key]
|
||||||
else:
|
else:
|
||||||
button.content.value = key
|
button.content.value = key
|
||||||
|
@ -96,7 +96,7 @@ class WuttaKeyboard(WuttaControl):
|
||||||
|
|
||||||
for key, button in self.keys.items():
|
for key, button in self.keys.items():
|
||||||
if key in self.caps_map:
|
if key in self.caps_map:
|
||||||
if self.shift:
|
if self.shift or self.caps_lock:
|
||||||
button.content.value = self.caps_map[key]
|
button.content.value = self.caps_map[key]
|
||||||
else:
|
else:
|
||||||
button.content.value = key
|
button.content.value = key
|
||||||
|
|
Loading…
Reference in a new issue