ijprest / keyboard-layout-editor

Web application to enable the design & editing of keyboard layouts
http://www.keyboard-layout-editor.com/
Other
1.3k stars 241 forks source link

Keyboard layout download default filename #236

Closed c933103 closed 6 years ago

c933103 commented 6 years ago

Now if you download a keyboard layout from the site as png/jpg/etc., the file name would always be "keyboard-layout.extension" by default. However, given that user can input the keyboard name in the website, would it be possible that when a keyboard name is given, the default downloaded file name would be changed the user-input keyboard-name instead of the pure "keyboard-layout.extension"?

ijprest commented 6 years ago

Pretty good suggestion...

ijprest commented 6 years ago

Should be working now for PNG, SVG, JSON, etc., downloads. (You might have to Ctrl+F5 to refresh.) Filenames are sanitized versions of the title, so expect spaces, slashes, etc., to be replaced. We still fall back on "keyboard-layout.*" if there is no title. d557aedcd90e53241d6a946ab8498751ca44a23f