Skip to content

Commit 2c19735

Browse files
committed
remove reportAria
1 parent a654d05 commit 2c19735

File tree

3 files changed

+40
-40
lines changed

3 files changed

+40
-40
lines changed

button.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -266,12 +266,12 @@ namespace user_interface_base {
266266

267267

268268
reportAria(force = false) {
269-
const msg: accessibility.TileAccessibilityMessage = {
270-
type: "tile",
271-
value: this.ariaId,
272-
force,
273-
}
274-
accessibility.setLiveContent(msg)
269+
// const msg: accessibility.TileAccessibilityMessage = {
270+
// type: "tile",
271+
// value: this.ariaId,
272+
// force,
273+
// }
274+
// accessibility.setLiveContent(msg)
275275
}
276276

277277
constructor(opts: {

navigator.ts

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -487,15 +487,15 @@ namespace user_interface_base {
487487
}
488488

489489
protected reportAria() {
490-
if (this.row == -1) {
491-
accessibility.setLiveContent(<
492-
accessibility.TextAccessibilityMessage
493-
>{
494-
type: "text",
495-
value: "delete_tile",
496-
force: true,
497-
})
498-
}
490+
// if (this.row == -1) {
491+
// accessibility.setLiveContent(<
492+
// accessibility.TextAccessibilityMessage
493+
// >{
494+
// type: "text",
495+
// value: "delete_tile",
496+
// force: true,
497+
// })
498+
// }
499499
}
500500
}
501501

@@ -507,18 +507,18 @@ namespace user_interface_base {
507507
this.col = 2
508508
}
509509
protected reportAria() {
510-
super.reportAria()
511-
if (this.row == -1) return
512-
const on = true // TODO: btn.getIcon() == "solid_red"
513-
accessibility.setLiveContent(<
514-
accessibility.LEDAccessibilityMessage
515-
>{
516-
type: "led",
517-
on,
518-
x: this.col,
519-
y: this.row,
520-
force: true,
521-
})
510+
// super.reportAria()
511+
// if (this.row == -1) return
512+
// const on = true // TODO: btn.getIcon() == "solid_red"
513+
// accessibility.setLiveContent(<
514+
// accessibility.LEDAccessibilityMessage
515+
// >{
516+
// type: "led",
517+
// on,
518+
// x: this.col,
519+
// y: this.row,
520+
// force: true,
521+
// })
522522
}
523523
}
524524

@@ -530,18 +530,18 @@ namespace user_interface_base {
530530
this.col = 2
531531
}
532532
protected reportAria() {
533-
super.reportAria()
534-
if (this.row == -1) return
535-
const on = true // TODO btn.getIcon() === "note_on"
536-
const index = this.hasDelete ? this.row - 1 : this.row
537-
accessibility.setLiveContent(<
538-
accessibility.NoteAccessibilityMessage
539-
>{
540-
type: "note",
541-
on,
542-
index,
543-
force: true,
544-
})
533+
// super.reportAria()
534+
// if (this.row == -1) return
535+
// const on = true // TODO btn.getIcon() === "note_on"
536+
// const index = this.hasDelete ? this.row - 1 : this.row
537+
// accessibility.setLiveContent(<
538+
// accessibility.NoteAccessibilityMessage
539+
// >{
540+
// type: "note",
541+
// on,
542+
// index,
543+
// force: true,
544+
// })
545545
}
546546
}
547547
}

scene.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ namespace user_interface_base {
22
const INPUT_PRIORITY = 10
33
const UPDATE_PRIORITY = 20
44
const RENDER_PRIORITY = 30
5-
const SCREEN_PRIORITY = 100
5+
const SCREEN_PRIORITY = 50
66

77
/**
88
* Top-level abstraction drawn to the screen.

0 commit comments

Comments
 (0)