handle upper/lower commands and warn of caps lock with upper

This commit is contained in:
Stewart Allen 2020-12-05 16:11:40 -05:00
commit 083ef70376

View file

@ -364,27 +364,39 @@
if (id) loadSettingsFromServer(id);
});
break;
case cca('s'): // complete slice
case cca('S'): // slice
case cca('s'): // slice
if (evt.shiftKey) {
API.show.alert('CAPS lock on?');
}
API.function.slice();
break;
case cca('p'): // prepare print
case cca('P'): // prepare
case cca('p'): // prepare
if (evt.shiftKey) {
API.show.alert('CAPS lock on?');
}
if (API.mode.get() !== 'SLA') {
// hidden in SLA mode
API.function.print();
}
break;
case cca('P'): // position widget
case cca('X'): // export
case cca('x'): // export
if (evt.shiftKey) {
API.show.alert('CAPS lock on?');
}
API.function.export();
break;
case cca('o'): // position widget
positionSelection();
break;
case cca('O'): // position widget
rotateInputSelection();
break;
case cca('r'): // recent files
API.modal.show('files');
break;
case cca('R'): // position widget
rotateInputSelection();
break;
case cca('x'): // export print
API.function.export();
break;
case cca('q'): // preferences
API.modal.show('prefs');
break;