瀏覽代碼

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

Nate 5 年之前
父節點
當前提交
adc97bc979
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      themes/default/template.php

+ 2 - 2
themes/default/template.php

@@ -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') {