Skip to content

Commit

Permalink
Use a string key name for listening to a single event name
Browse files Browse the repository at this point in the history
  • Loading branch information
fatih-erikli committed Dec 21, 2023
1 parent c7eabc8 commit 8335acb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fontra/views/editor/panel-reference-font.js
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ export default class ReferenceFontPanel extends Panel {
referenceFontModel = this.model;

this.editorController.sceneSettingsController.addKeyListener(
["selectedGlyphName"],
"selectedGlyphName",
(event) => {
this.requestReferenceFontsPreview();
}
Expand Down

0 comments on commit 8335acb

Please sign in to comment.