Add shortcut in operations files

This commit is contained in:
Jon D
2016-11-05 19:36:53 +00:00
parent f37475fad9
commit 8a9aabb716
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
import { t } from '../util/locale';
import { actionFlip } from '../actions/index';
import { uiCmd } from '../ui/index';
export function operationFlipHorizontal(selectedIDs, context) {
var entityId = selectedIDs[0];
@@ -25,7 +26,7 @@ export function operationFlipHorizontal(selectedIDs, context) {
};
operation.id = 'flipHorizontal';
operation.keys = [t('operations.flipHorizontal.key')];
operation.keys = [uiCmd('⌥H')]; // Alt-H
operation.title = t('operations.flipHorizontal.title');
return operation;
+2 -1
View File
@@ -1,5 +1,6 @@
import { t } from '../util/locale';
import { actionFlip } from '../actions/index';
import { uiCmd } from '../ui/index';
export function operationFlipVertical(selectedIDs, context) {
var entityId = selectedIDs[0];
@@ -25,7 +26,7 @@ export function operationFlipVertical(selectedIDs, context) {
};
operation.id = 'flipVertical';
operation.keys = [t('operations.flipVertical.key')];
operation.keys = [uiCmd('⌥V')]; // Alt-V
operation.title = t('operations.flipVertical.title');
return operation;