kpxc-search update and keepass with accessibility

This commit is contained in:
cubernetes 2026-10-23 12:29:52 +02:00
parent 972436ba13
commit 226bb9df69
3 changed files with 15 additions and 2 deletions

View file

@ -414,7 +414,6 @@ with lib;
jless
jq
kdotool
keepassxc
ksh
libarchive
libreoffice
@ -484,6 +483,15 @@ with lib;
yt-dlp
yubioath-flutter
(pkgs.symlinkJoin {
name = "keepassxc";
paths = [ pkgs.keepassxc ];
nativeBuildInputs = [ pkgs.makeWrapper ];
postBuild = ''
wrapProgram $out/bin/keepassxc --set QT_LINUX_ACCESSIBILITY_ALWAYS_ON 1
'';
})
keepassxc
(pkgs.writeShellScriptBin "kpxc-search" ''
export GI_TYPELIB_PATH=${pkgs.lib.makeSearchPath "lib/girepository-1.0" [
pkgs.at-spi2-core pkgs.glib.out pkgs.gobject-introspection

View file

@ -88,6 +88,10 @@ def is_line_edit(role, states):
and states is not None
and states.contains(Atspi.StateType.SHOWING)
and states.contains(Atspi.StateType.EDITABLE)
# A disabled (greyed-out) field still reports EDITABLE, e.g. the
# search box while the database is locked.
and states.contains(Atspi.StateType.ENABLED)
and states.contains(Atspi.StateType.SENSITIVE)
and not states.contains(Atspi.StateType.MULTI_LINE)
)