mac: allow using Shift-Enter to complete capture
This commit is contained in:
parent
83e7de9be9
commit
20022db1f6
|
@ -9,7 +9,7 @@ export function showNotification(text: string, priority: number=0) {
|
|||
'title': "grasp",
|
||||
'message': text,
|
||||
'priority': priority,
|
||||
'iconUrl': 'unicorn.png',
|
||||
'iconUrl': 'img/unicorn.png',
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -74,7 +74,9 @@ function submitComment () {
|
|||
|
||||
// todo not sure if can define const here??
|
||||
var ctrlEnterSubmit: KeyboardEventListener = (e) => {
|
||||
if (e.ctrlKey && e.key === 'Enter') {
|
||||
// note: there is also e.metaKey which triggers on mac when cmd is pressed
|
||||
// but it doesn't seem to allow chords like cmd+Enter
|
||||
if ((e.ctrlKey || e.shiftKey) && e.key === 'Enter') {
|
||||
submitComment();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue