Skip to content

Commit b95cb1b

Browse files
committed
Made navigation of grids less annoying by only announcing the column title once if navigating up and down in the same column.
1 parent ab39b8d commit b95cb1b

File tree

4 files changed

+19
-7
lines changed

4 files changed

+19
-7
lines changed

addon/appModules/vismaAdmin/__init__.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959

6060

6161
last_tab_text = ""
62+
last_col_title = ""
6263

6364
class TCITEMWStruct(Structure):
6465
_fields_=[
@@ -289,6 +290,8 @@ def script_changeItem(self,gesture):
289290

290291
def event_gainFocus(self):
291292
try:
293+
global last_col_title
294+
last_col_title = ""
292295
if self.name != "Grid":
293296
ui.message(self.name)
294297
if config.conf['VismaAdministration']['sayNumGridRows']:
@@ -421,7 +424,13 @@ def ReadGridSelection(self):
421424
elif valtxt == "0":
422425
valtxt = "Nej"
423426

424-
ui.message("%s, %s" % (coltxt, valtxt))
427+
global last_col_title
428+
429+
if (coltxt == last_col_title):
430+
ui.message("%s" % (valtxt))
431+
else:
432+
last_col_title = coltxt
433+
ui.message("%s, %s" % (coltxt, valtxt))
425434
except Exception as e:
426435
log.info("Fel i readGridSelection: %s"%e)
427436
ui.message("Fel i readGridSelection: %s"%e)

addon/whats-new.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# What's New for Visma Administration Add-on
2+
3+
## Version 2025.1.2, 2025-08-21
4+
When navigating in a grid the column header label is announced only once as long as you stay in that column. This is to make it less chatty.
5+
6+
## Version 2025.1.1, 2025-08-20
7+
Fixed the reading of texts on tabs in the detail views with tabs.

buildVars.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ def _(arg):
2525
# Translators: Long description to be shown for this add-on on add-on information from add-ons manager
2626
"addon_description": _("""Fixes accessibility issues in Visma Administration/Fakturering/forening."""),
2727
# version
28-
"addon_version": "2025.1.1",
28+
"addon_version": "2025.1.2",
2929
# Brief changelog for this version
3030
# Translators: what's new content for the add-on version to be shown in the add-on store
31-
"addon_changelog": _("""Fixed the reading of texts on tabs in the detail views with tabs."""),
31+
"addon_changelog": _("""chatty."""),
3232
# Author(s)
3333
"addon_author": "Karl-Otto Rosenqvist <karl-otto@mawingu.se>",
3434
# URL for the add-on documentation support

whats-new.md

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)