support undo/redo for azerty keyboards (#630)
* support undo/redo for azerty keyboards * migrate to event.key * remove unnecessary shiftKey check Co-authored-by: David Luzar <luzar.david@gmail.com>
This commit is contained in:
committed by
GitHub
parent
46791e6da1
commit
7c9e6dd3f1
@ -383,7 +383,8 @@ export class App extends React.Component<any, AppState> {
|
||||
}
|
||||
elements = clearSelection(elements);
|
||||
this.setState({ elementType: shape });
|
||||
} else if (event[KEYS.META] && event.code === "KeyZ") {
|
||||
// Undo action
|
||||
} else if (event[KEYS.META] && /z/i.test(event.key)) {
|
||||
event.preventDefault();
|
||||
|
||||
if (
|
||||
|
Reference in New Issue
Block a user