Open Trung0246 opened 3 years ago
This is something I see locally on vivaldi too. Is there a way to fix this?
Also stumbled upon this. On macOS, in Arc, Cmd+Z reopens the closed tab (unless .preventDefault()
is called), and undoing changes in ASCIIFlow becomes quite more cumbersome :D
Likewise, Cmd+Y opens browsing history in all macOS browsers, which also conflicts with “redo” here.
Raised a PR to address this: https://github.com/lewish/asciiflow/pull/301
Apparently asciiflow didn't call
preventDefault
to stop default browser behaviour on Ctrl+Z. Looking at the code seems likepreventDefault
only appear at touch input. I would suggest to addpreventDefault
on keyboard input too, especially with shortcut like Ctrl+Z which is a common shortcut on different browsers.Browser: Vivaldi. OS: Win10.