Skip to content

Commit 728e609

Browse files
ui,events: improved select-all behaviour
1 parent bda2cae commit 728e609

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ui/opensnitch/customwidgets/generictableview.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -604,8 +604,6 @@ def eventFilter(self, obj, event):
604604
self.shiftPressed = False
605605
if event.key() == Qt.Key.Key_Control:
606606
self.ctrlPressed = False
607-
if event.key() == Qt.Key.Key_A:
608-
self.keySelectAll = True if self.ctrlPressed else False
609607

610608
elif event.type() == QEvent.Type.KeyPress:
611609
# FIXME: setValue() does not update the scrollbars correctly in
@@ -631,6 +629,8 @@ def eventFilter(self, obj, event):
631629
self.ctrlPressed = True
632630
elif event.key() == Qt.Key.Key_Space:
633631
self.onKeySpace()
632+
elif event.key() == Qt.Key.Key_A:
633+
self.keySelectAll = True
634634

635635
elif event.type() == QEvent.Type.Wheel:
636636
self.vScrollBar.wheelEvent(event)

0 commit comments

Comments
 (0)