WIP Steal Ctrl or Ctrl shift Z in world from the accelerator, win undo issue
Chromium bug with DOM objects using undo buffer first, even if cleared from view.
Not hooked up to the react undo buffer yet! (not sure how)
@@ -136,6 +136,15 @@ class World extends Component {
if (e.target.nodeName !== "BODY") {
return;
}
+ if (e.code === "KeyZ" && e.ctrlKey) {
+ if (e.shiftKey) {
+ event.preventDefault();
+ console.log("caught Shift Z" + event);
+ } else {
+ event.preventDefault();
+ console.log("caught Z" + event);
+ }
+ }
if (e.ctrlKey || e.shiftKey || e.metaKey) {
return;
}
