瀏覽代碼

Functions: Add [space] to key_press() function.

Nate 5 年之前
父節點
當前提交
e2ea396d59
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      resources/functions.php

+ 3 - 0
resources/functions.php

@@ -1587,6 +1587,9 @@ function number_pad($number,$n) {
 					case 'backspace':
 						$key_code = '(e.which == 8)';
 						break;
+					case 'space':
+						$key_code = '(e.which == 32)';
+						break;
 					case 'ctrl+s':
 						$key_code = '(((e.which == 115 || e.which == 83) && (e.ctrlKey || e.metaKey)) || (e.which == 19))';
 						break;