Enable scaling the selection via hotkeys

This commit is contained in:
Quincy Morgan
2020-09-21 14:02:41 -04:00
parent 28ea082892
commit 45decdb54c
8 changed files with 190 additions and 5 deletions
+8 -3
View File
@@ -28,17 +28,22 @@ export function utilKeybinding(namespace) {
if (matches(binding, true)) {
binding.callback();
didMatch = true;
// match a max of one binding per event
break;
}
}
// then unshifted keybindings
if (didMatch) return;
// then unshifted keybindings
for (i = 0; i < bindings.length; i++) {
binding = bindings[i];
if (binding.event.modifiers.shiftKey) continue; // shift
if (!!binding.capture !== isCapturing) continue;
if (matches(binding, false)) {
binding.callback();
break;
}
}
@@ -214,8 +219,8 @@ utilKeybinding.modifierProperties = {
91: 'metaKey'
};
utilKeybinding.plusKeys = ['plus', 'ffplus', '=', 'ffequals'];
utilKeybinding.minusKeys = ['_', '-', 'ffminus', 'dash'];
utilKeybinding.plusKeys = ['plus', 'ffplus', '=', 'ffequals', '≠', '±'];
utilKeybinding.minusKeys = ['_', '-', 'ffminus', 'dash', '', '—'];
utilKeybinding.keys = {
// Backspace key, on Mac: ⌫ (Backspace)