Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14459295
D8699.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
556 B
Referenced Files
None
Subscribers
None
D8699.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D8699: Make Cmd+Enter work to submit a form
Attached
Detach File
Event Timeline
Log In to Comment