aboutsummaryrefslogtreecommitdiff
path: root/radicale_infcloud
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2023-01-03 16:51:53 +0000
committerB. Stack <bgstack15@gmail.com>2023-01-03 16:51:53 +0000
commit2bb1ee42a48c312151558b1bbcc31e86c26d924a (patch)
treee4dd327a4a9afa5021f608dd2373bfd268ba6734 /radicale_infcloud
parentMerge branch 'login-improvements' into 'stackrpms' (diff)
parentmake update-infcloud-cache use env MANIFEST (diff)
downloadradicaleinfcloud-2bb1ee42a48c312151558b1bbcc31e86c26d924a.tar.gz
radicaleinfcloud-2bb1ee42a48c312151558b1bbcc31e86c26d924a.tar.bz2
radicaleinfcloud-2bb1ee42a48c312151558b1bbcc31e86c26d924a.zip
Merge branch 'add-ctrl-enter' into 'stackrpms'
Add ctrl enter See merge request bgstack15/RadicaleInfCloud!3
Diffstat (limited to 'radicale_infcloud')
-rw-r--r--radicale_infcloud/web/main.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/radicale_infcloud/web/main.js b/radicale_infcloud/web/main.js
index 84b42dd..bd8a584 100644
--- a/radicale_infcloud/web/main.js
+++ b/radicale_infcloud/web/main.js
@@ -1600,9 +1600,16 @@ window.onload=globalMain;
window.onkeydown=function(event)
{
switch(event.which) {
+ case 10:
+ /* case 10 is for Mac or possibly Chrome compatibility. https://stackoverflow.com/a/9343095 */
+ if(globalActiveApp=='CalDavZAP' && $('#event_details_template').is(':visible') && $('#saveButton').is(':visible') && event.ctrlKey)
+ $('#saveButton').trigger('click');
+ break;
case 13:
if(!isUserLogged)
$('#Login').find('[data-type="system_login"]').trigger('click');
+ if(globalActiveApp=='CalDavZAP' && $('#event_details_template').is(':visible') && $('#saveButton').is(':visible') && event.ctrlKey)
+ $('#saveButton').trigger('click');
break;
case 27:
if(globalActiveApp=='CalDavZAP' && $('#CAEvent').is(':visible') && $('#EventDisabler').is(':hidden'))
bgstack15