mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-19 19:08:05 +08:00
Cancel in-progress drag with right click or escape key (#119)
This commit is contained in:
@@ -21,4 +21,4 @@
|
||||
<div id="app"></div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
</html>
|
||||
|
||||
@@ -2,6 +2,8 @@ import { createApp } from "vue";
|
||||
import App from "./App.vue";
|
||||
import { attachResponseHandlerToPage } from "./response-handler";
|
||||
|
||||
document.addEventListener("contextmenu", (e) => e.preventDefault());
|
||||
|
||||
attachResponseHandlerToPage();
|
||||
|
||||
createApp(App).mount("#app");
|
||||
|
||||
@@ -111,6 +111,7 @@ pub fn translate_key(name: &str) -> events::Key {
|
||||
"Shift" => KeyShift,
|
||||
"Control" => KeyControl,
|
||||
"Alt" => KeyAlt,
|
||||
"Escape" => KeyEscape,
|
||||
_ => UnknownKey,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user