comparison s4-main.js @ 931:756c99e27d4f draft

Posting with Meta-Enter changed to Ctrl-Enter
author HIROSE Yuuji <yuuji@gentei.org>
date Tue, 16 Feb 2021 09:26:15 +0900
parents 1221335459c6
children 9184aa358773
comparison
equal deleted inserted replaced
930:1221335459c6 931:756c99e27d4f
503 area.setSelectionRange(pos-RegExp.lastMatch.length, pos); 503 area.setSelectionRange(pos-RegExp.lastMatch.length, pos);
504 } 504 }
505 } 505 }
506 function helpMarkdownEnter(e) { 506 function helpMarkdownEnter(e) {
507 if (e.keyCode == 13 && !e.shiftKey) { 507 if (e.keyCode == 13 && !e.shiftKey) {
508 if (e.metaKey && submitThisForm(e.target)) { 508 if (e.ctrlKey && submitThisForm(e.target)) {
509 e.preventDefault(); 509 e.preventDefault();
510 return; 510 return;
511 } 511 }
512 var area = e.target; 512 var area = e.target;
513 var pos = area.selectionStart, text = area.value; 513 var pos = area.selectionStart, text = area.value;

yatex.org