Anki/ts/image-occlusion/tools/shortcuts.ts
Mani be1f889211
fixes: remove unfinished shapes, remove selectable and make shapes remain inside canvas (#2809)
* remove unfinished polygon and remove selectable for shapes in polygon mode

* make group and polygon position remain inside canvas area

* click through transparent area in grouped object

* add some shortcuts for basic usages

* tools button icon in center & switch mode border

* fix load svg image

* basic rtl support, panzoom have issues in rtl mode

* better zoom option both in ltr and rtl

* handle zoom event in mask editor

* add h button to handle toggle mask

* add more mime type

* use capital M (shift+m) for toggle mask

* allow io shortcuts in mask editor only

* make other shapes also remain in canvas bound area

* better zoom implementation, zoom from center
add zoom to resize event listener

* add a border to corner to handle blend of control

* add refresh button to go to  selection menu

* add tooltip to shortcuts and also add shortcut for other tools

* make opacity remain in same state when toggled on

* opacity for group/ungroup objects

* update shortcuts implementation
2023-11-24 14:06:40 +10:00

25 lines
1.3 KiB
TypeScript

// Copyright: Ankitects Pty Ltd and contributors
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
export const cursorKeyCombination = "Control+S";
export const rectangleKeyCombination = "Control+R";
export const ellipseKeyCombination = "Control+E";
export const polygonKeyCombination = "Control+P";
export const textKeyCombination = "Control+T";
export const magnifyKeyCombination = "Control+M";
export const undoKeyCombination = "Control+Z";
export const redoKeyCombination = "Control+Y";
export const zoomOutKeyCombination = "Control+-";
export const zoomInKeyCombination = "Control++";
export const zoomResetKeyCombination = "Control+F";
export const toggleTranslucentKeyCombination = "Control+O";
export const deleteKeyCombination = "Delete";
export const duplicateKeyCombination = "Control+C";
export const groupKeyCombination = "Control+G";
export const ungroupKeyCombination = "Control+U";
export const alignLeftKeyCombination = "Control+Shift+L";
export const alignHorizontalCenterKeyCombination = "Control+Shift+H";
export const alignRightKeyCombination = "Control+Shift+R";
export const alignTopKeyCombination = "Control+Shift+T";
export const alignVerticalCenterKeyCombination = "Control+Shift+V";
export const alignBottomKeyCombination = "Control+Shift+B";