mirror of
https://github.com/google/blockly.git
synced 2025-12-16 06:10:12 +01:00
Merge pull request #9515 from RaspberryPiFoundation/main
chore: Merge `main` into `add-screen-reader-support-experimental`
This commit is contained in:
2
.github/CODEOWNERS
vendored
2
.github/CODEOWNERS
vendored
@@ -1 +1 @@
|
|||||||
* @google/blockly-eng
|
* @RaspberryPiFoundation/blockly-collaborators
|
||||||
|
|||||||
@@ -280,7 +280,7 @@ export class Menu {
|
|||||||
*/
|
*/
|
||||||
highlightNext() {
|
highlightNext() {
|
||||||
const index = this.highlightedItem
|
const index = this.highlightedItem
|
||||||
? this.menuItems.indexOf(this.highlightedItem)
|
? this.getMenuItems().indexOf(this.highlightedItem)
|
||||||
: -1;
|
: -1;
|
||||||
this.highlightHelper(index, 1);
|
this.highlightHelper(index, 1);
|
||||||
}
|
}
|
||||||
@@ -293,7 +293,7 @@ export class Menu {
|
|||||||
*/
|
*/
|
||||||
highlightPrevious() {
|
highlightPrevious() {
|
||||||
const index = this.highlightedItem
|
const index = this.highlightedItem
|
||||||
? this.menuItems.indexOf(this.highlightedItem)
|
? this.getMenuItems().indexOf(this.highlightedItem)
|
||||||
: -1;
|
: -1;
|
||||||
this.highlightHelper(index < 0 ? this.menuItems.length : index, -1);
|
this.highlightHelper(index < 0 ? this.menuItems.length : index, -1);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user