mirror of
https://github.com/pretix/pretix.git
synced 2026-05-10 16:04:02 +00:00
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:
@@ -1115,7 +1115,7 @@ var editor = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
_on_keydown: function (e) {
|
_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();
|
var thing = editor.fabric.getActiveObject();
|
||||||
if ($("#source-container").is(':visible')) {
|
if ($("#source-container").is(':visible')) {
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user