PDF editor: Allow Alt+Arrow for small adjustments (Z#23186382) (#4936)

* PDF editor: Allow Alt+Arrow for small adjustments (Z#23186382)

* Update src/pretix/static/pretixcontrol/js/ui/editor.js

Co-authored-by: Richard Schreiber <schreiber@rami.io>

---------

Co-authored-by: Richard Schreiber <schreiber@rami.io>
This commit is contained in:
Raphael Michel
2025-03-19 16:47:18 +01:00
committed by GitHub
parent 695e817f99
commit b969f114f5

View File

@@ -1115,7 +1115,7 @@ var editor = {
},
_on_keydown: function (e) {
var step = e.shiftKey ? editor._mm2px(10) : editor._mm2px(1);
var step = editor._mm2px(e.shiftKey ? 10 : (e.altKey ? 0.1 : 1));
var thing = editor.fabric.getActiveObject();
if ($("#source-container").is(':visible')) {
return true;