forked from Boria138/PortProtonQt
fix(virtual-keyboard): turn off caps lock when disabling shift while caps is enabled
Signed-off-by: Boris Yumankulov <boria138@altlinux.org>
This commit is contained in:
@@ -415,6 +415,8 @@ class VirtualKeyboard(QFrame):
|
|||||||
|
|
||||||
def on_shift_click(self, checked):
|
def on_shift_click(self, checked):
|
||||||
self.shift_pressed = checked
|
self.shift_pressed = checked
|
||||||
|
if not checked and self.caps_lock:
|
||||||
|
self.caps_lock = False
|
||||||
self.update_keyboard()
|
self.update_keyboard()
|
||||||
|
|
||||||
def show_for_widget(self, widget):
|
def show_for_widget(self, widget):
|
||||||
|
Reference in New Issue
Block a user