WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit a8b66c3

Browse files
Show ASCII character in editor (#405)
It's useful to see the ASCII character that you're editing.
1 parent 8c03ef1 commit a8b66c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/glyphEditor.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@
170170
// Let's use the DOM to store everything for now
171171

172172
static updateCaption(element, code) {
173-
element.textContent = `Char #${code}`;
173+
element.textContent = `Char #${code} [`+String.fromCharCode(code)+']';
174174
}
175175

176176
// Add a pixel matrix to draw a new character

0 commit comments

Comments
 (0)