Skip to content

Commit 1f83540

Browse files
committed
fix(fields): Implement getClass method
1 parent eb24d41 commit 1f83540

2 files changed

Lines changed: 24 additions & 0 deletions

File tree

plugins/field-bitmap/src/field-bitmap.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,18 @@ export class FieldBitmap extends Blockly.Field<number[][]> {
609609
);
610610
}
611611
}
612+
613+
/**
614+
* Returns this field's class.
615+
*
616+
* Used by keyboard navigation to look up the rules for navigating from this
617+
* field.
618+
*
619+
* @returns This field's class.
620+
*/
621+
getClass() {
622+
return FieldBitmap;
623+
}
612624
}
613625

614626
interface Buttons {

plugins/field-colour/src/field_colour.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -729,6 +729,18 @@ export class FieldColour extends Blockly.Field<string> {
729729
// the static fromJson method.
730730
return new this(options.colour, undefined, options);
731731
}
732+
733+
/**
734+
* Returns this field's class.
735+
*
736+
* Used by keyboard navigation to look up the rules for navigating from this
737+
* field.
738+
*
739+
* @returns This field's class.
740+
*/
741+
getClass() {
742+
return FieldColour;
743+
}
732744
}
733745

734746
/** The default value for this field. */

0 commit comments

Comments
 (0)