Page MenuHomePhabricator

D8699.diff
No OneTemporary

D8699.diff

diff --git a/webroot/rsrc/js/core/behavior-form.js b/webroot/rsrc/js/core/behavior-form.js
--- a/webroot/rsrc/js/core/behavior-form.js
+++ b/webroot/rsrc/js/core/behavior-form.js
@@ -15,9 +15,9 @@
});
- JX.Stratcom.listen('keypress', ['tag:form', 'tag:textarea'], function(e) {
+ JX.Stratcom.listen('keydown', ['tag:form', 'tag:textarea'], function(e) {
var raw = e.getRawEvent();
- if (e.getSpecialKey() != 'return' || !raw.ctrlKey) {
+ if (!(e.getSpecialKey() === 'return' && (raw.ctrlKey || raw.metaKey))) {
return;
}

File Metadata

Mime Type
text/plain
Expires
Sat, Dec 28, 7:58 AM (6 h, 33 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6935920
Default Alt Text
D8699.diff (556 B)

Event Timeline