Fixed ctrl+z not working inside input
This commit is contained in:
parent
b4f7285b33
commit
6abac9782d
2 changed files with 2 additions and 1 deletions
|
|
@ -112,6 +112,8 @@ export default function ParameterComponent({
|
|||
if (data.node!.template[name].value !== newValue) {
|
||||
takeSnapshot();
|
||||
}
|
||||
|
||||
data.node!.template[name].value = newValue; // necessary to enable ctrl+z inside the input
|
||||
|
||||
setNode(data.id, (oldNode) => {
|
||||
let newNode = cloneDeep(oldNode);
|
||||
|
|
|
|||
|
|
@ -100,7 +100,6 @@ export default function Page({
|
|||
event.preventDefault(); // prevent the default action
|
||||
redo();
|
||||
} else if (event.key === "z" && (event.ctrlKey || event.metaKey)) {
|
||||
console.log("nao era pra tar aqui");
|
||||
event.preventDefault();
|
||||
undo();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue