mirror of
https://github.com/aclist/dztui.git
synced 2026-10-29 06:02:51 +01:00
feat: apply scrollable mixin to pages
This commit is contained in:
1 parent
aba00f732a
commit
5f0c8f7654
11 files changed
+115
-88
No files matched your search
@@ -23,3 +23,22 @@ def is_ctrl_mask(event: Gdk.EventKey) -> bool:
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
|
||||
def is_filterkey(key: int) -> bool:
|
||||
keys = (
|
||||
Gdk.KEY_0,
|
||||
Gdk.KEY_1,
|
||||
Gdk.KEY_2,
|
||||
Gdk.KEY_3,
|
||||
Gdk.KEY_4,
|
||||
Gdk.KEY_5,
|
||||
Gdk.KEY_6,
|
||||
Gdk.KEY_7,
|
||||
Gdk.KEY_8,
|
||||
Gdk.KEY_9,
|
||||
Gdk.KEY_backslash,
|
||||
Gdk.KEY_minus,
|
||||
)
|
||||
if key in keys:
|
||||
return True
|
||||
return False
|
||||
Reference in new issue
Block a user