handle upper/lower commands and warn of caps lock with upper
This commit is contained in:
parent
5bf19ee5cd
commit
083ef70376
1 changed files with 21 additions and 9 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue