@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Send on enter in Conpherence chat column

Summary: Ref T7538. We can figure out whether to backport this to main Conpherence later and/or remove buttons, etc., but this behavior seems pretty clearly good.

Test Plan:
- Pressed enter (sent message).
- Pressed shift+enter (newline).

Reviewers: btrahan, chad

Reviewed By: chad

Subscribers: epriestley

Maniphest Tasks: T7538

Differential Revision: https://secure.phabricator.com/D12085

+30 -15
+15 -15
resources/celerity/map.php
··· 7 7 */ 8 8 return array( 9 9 'names' => array( 10 - 'core.pkg.css' => 'a4b1b2ae', 10 + 'core.pkg.css' => 'a7f3dc55', 11 11 'core.pkg.js' => '31bc6546', 12 12 'darkconsole.pkg.js' => '8ab24e01', 13 13 'differential.pkg.css' => '1940be3f', ··· 21 21 'rsrc/css/aphront/dialog-view.css' => 'd2e76b88', 22 22 'rsrc/css/aphront/lightbox-attachment.css' => '7acac05d', 23 23 'rsrc/css/aphront/list-filter-view.css' => '2ae43867', 24 - 'rsrc/css/aphront/multi-column.css' => '41a848c0', 24 + 'rsrc/css/aphront/multi-column.css' => 'fd18389d', 25 25 'rsrc/css/aphront/notification.css' => '9c279160', 26 26 'rsrc/css/aphront/pager-view.css' => '2e3539af', 27 27 'rsrc/css/aphront/panel-view.css' => '8427b78d', ··· 353 353 'rsrc/js/application/auth/behavior-persona-login.js' => '9414ff18', 354 354 'rsrc/js/application/config/behavior-reorder-fields.js' => '14a827de', 355 355 'rsrc/js/application/conpherence/ConpherenceThreadManager.js' => '0324970d', 356 - 'rsrc/js/application/conpherence/behavior-durable-column.js' => 'a3ba7034', 356 + 'rsrc/js/application/conpherence/behavior-durable-column.js' => '217c5ea5', 357 357 'rsrc/js/application/conpherence/behavior-menu.js' => 'c4151295', 358 358 'rsrc/js/application/conpherence/behavior-pontificate.js' => '21ba5861', 359 359 'rsrc/js/application/conpherence/behavior-quicksand-blacklist.js' => '7927a7d3', ··· 501 501 'aphront-dark-console-css' => '6378ef3d', 502 502 'aphront-dialog-view-css' => 'd2e76b88', 503 503 'aphront-list-filter-view-css' => '2ae43867', 504 - 'aphront-multi-column-view-css' => '41a848c0', 504 + 'aphront-multi-column-view-css' => 'fd18389d', 505 505 'aphront-pager-view-css' => '2e3539af', 506 506 'aphront-panel-view-css' => '8427b78d', 507 507 'aphront-table-view-css' => 'b22b7216', ··· 583 583 'javelin-behavior-diffusion-locate-file' => '6d3e1947', 584 584 'javelin-behavior-diffusion-pull-lastmodified' => '2b228192', 585 585 'javelin-behavior-doorkeeper-tag' => 'e5822781', 586 - 'javelin-behavior-durable-column' => 'a3ba7034', 586 + 'javelin-behavior-durable-column' => '217c5ea5', 587 587 'javelin-behavior-error-log' => '6882e80a', 588 588 'javelin-behavior-fancy-datepicker' => 'c51ae228', 589 589 'javelin-behavior-global-drag-and-drop' => 'bbdf75ca', ··· 973 973 'phabricator-phtize', 974 974 'changeset-view-manager', 975 975 ), 976 + '217c5ea5' => array( 977 + 'javelin-behavior', 978 + 'javelin-dom', 979 + 'javelin-stratcom', 980 + 'javelin-behavior-device', 981 + 'javelin-scrollbar', 982 + 'javelin-quicksand', 983 + 'phabricator-keyboard-shortcut', 984 + 'conpherence-thread-manager', 985 + ), 976 986 '21ba5861' => array( 977 987 'javelin-behavior', 978 988 'javelin-dom', ··· 1607 1617 'javelin-util', 1608 1618 'javelin-vector', 1609 1619 'javelin-magical-init', 1610 - ), 1611 - 'a3ba7034' => array( 1612 - 'javelin-behavior', 1613 - 'javelin-dom', 1614 - 'javelin-stratcom', 1615 - 'javelin-behavior-device', 1616 - 'javelin-scrollbar', 1617 - 'javelin-quicksand', 1618 - 'phabricator-keyboard-shortcut', 1619 - 'conpherence-thread-manager', 1620 1620 ), 1621 1621 'a48aa699' => array( 1622 1622 'javelin-behavior',
+15
webroot/rsrc/js/application/conpherence/behavior-durable-column.js
··· 281 281 'conpherence-message-form', 282 282 _sendMessage); 283 283 284 + // Send on enter if the shift key is not held. 285 + JX.Stratcom.listen( 286 + 'keydown', 287 + 'conpherence-message-form', 288 + function(e) { 289 + if (e.getSpecialKey() != 'return') { 290 + return; 291 + } 292 + var raw = e.getRawEvent(); 293 + if (raw.shiftKey) { 294 + return; 295 + } 296 + _sendMessage(e); 297 + }); 298 + 284 299 JX.Stratcom.listen( 285 300 ['keydown'], 286 301 'conpherence-durable-column-textarea',