Template: Fix setting name controlling copy and save keyboard shorcuts.

This commit is contained in:
Nate
2020-03-25 10:35:39 -06:00
parent 1f277f38e3
commit 3343b2a664

View File

@@ -372,7 +372,7 @@
{/if}
//key: [ctrl]+[s], edit: to save
{if $settings.theme.keyboard_shortcut_check_save_enabled}
{if $settings.theme.keyboard_shortcut_save_enabled}
{literal}
if (((e.which == 115 || e.which == 83) && (e.ctrlKey || e.metaKey) && !e.shiftKey) || (e.which == 19)) {
e.preventDefault();
@@ -387,7 +387,7 @@
{/if}
//key: [ctrl]+[c], list,edit: to copy
{if $settings.theme.keyboard_shortcut_check_copy_enabled}
{if $settings.theme.keyboard_shortcut_copy_enabled}
{if $browser_name_short == 'Safari'} //emulate with detecting [c] only, as [command] and [control] keys are ignored when captured
{literal}
if ((e.which == 99 || e.which == 67) && !(e.target.tagName == 'INPUT' && e.target.type == 'text') && e.target.tagName != 'TEXTAREA') {