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); if (id) loadSettingsFromServer(id);
}); });
break; 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(); API.function.slice();
break; 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') { if (API.mode.get() !== 'SLA') {
// hidden in SLA mode // hidden in SLA mode
API.function.print(); API.function.print();
} }
break; 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(); positionSelection();
break; break;
case cca('O'): // position widget
rotateInputSelection();
break;
case cca('r'): // recent files case cca('r'): // recent files
API.modal.show('files'); API.modal.show('files');
break; break;
case cca('R'): // position widget
rotateInputSelection();
break;
case cca('x'): // export print
API.function.export();
break;
case cca('q'): // preferences case cca('q'): // preferences
API.modal.show('prefs'); API.modal.show('prefs');
break; break;