kommitters / editorjs-undo

Undo/Redo feature for Editor.js
https://www.npmjs.com/package/editorjs-undo
MIT License
165 stars 51 forks source link

Add support to different keyboard distributions #219

Closed MarioRodriguezS closed 10 months ago

MarioRodriguezS commented 10 months ago

fix #213

Description

This pull request changes the way that the pressed key is obtained from the event listener, it replaces event.code with event.key in order to obtain the real key pressed in any keyboard distribution.

miguelnietoa commented 10 months ago

This PR basically reverts the changes introduced in PR https://github.com/kommitters/editorjs-undo/pull/168 which was merged to fix this issue https://github.com/kommitters/editorjs-undo/issues/167... 🤔