Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14119226
D17577.id42287.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
3 KB
Referenced Files
None
Subscribers
None
D17577.id42287.diff
View Options
diff --git a/resources/celerity/map.php b/resources/celerity/map.php
--- a/resources/celerity/map.php
+++ b/resources/celerity/map.php
@@ -528,7 +528,7 @@
'rsrc/js/phui/behavior-phui-tab-group.js' => '0a0b10e9',
'rsrc/js/phuix/PHUIXActionListView.js' => 'b5c256b8',
'rsrc/js/phuix/PHUIXActionView.js' => 'b3465b9b',
- 'rsrc/js/phuix/PHUIXAutocomplete.js' => '7c492cd2',
+ 'rsrc/js/phuix/PHUIXAutocomplete.js' => '7910aacb',
'rsrc/js/phuix/PHUIXDropdownMenu.js' => '8018ee50',
'rsrc/js/phuix/PHUIXFormControl.js' => '83e03671',
'rsrc/js/phuix/PHUIXIconView.js' => 'bff6884b',
@@ -885,7 +885,7 @@
'phui-workpanel-view-css' => 'a3a63478',
'phuix-action-list-view' => 'b5c256b8',
'phuix-action-view' => 'b3465b9b',
- 'phuix-autocomplete' => '7c492cd2',
+ 'phuix-autocomplete' => '7910aacb',
'phuix-dropdown-menu' => '8018ee50',
'phuix-form-control-view' => '83e03671',
'phuix-icon-view' => 'bff6884b',
@@ -1456,6 +1456,12 @@
'multirow-row-manager',
'javelin-json',
),
+ '7910aacb' => array(
+ 'javelin-install',
+ 'javelin-dom',
+ 'phuix-icon-view',
+ 'phabricator-prefab',
+ ),
'7927a7d3' => array(
'javelin-behavior',
'javelin-quicksand',
@@ -1464,12 +1470,6 @@
'owners-path-editor',
'javelin-behavior',
),
- '7c492cd2' => array(
- 'javelin-install',
- 'javelin-dom',
- 'phuix-icon-view',
- 'phabricator-prefab',
- ),
'7cbe244b' => array(
'javelin-install',
'javelin-util',
diff --git a/src/view/form/control/PhabricatorRemarkupControl.php b/src/view/form/control/PhabricatorRemarkupControl.php
--- a/src/view/form/control/PhabricatorRemarkupControl.php
+++ b/src/view/form/control/PhabricatorRemarkupControl.php
@@ -97,6 +97,15 @@
'headerIcon' => 'fa-smile-o',
'headerText' => pht('Find Emoji:'),
'hintText' => $emoji_datasource->getPlaceholderText(),
+
+ // Cancel on emoticons like ":3".
+ 'ignore' => array(
+ '3',
+ ')',
+ '(',
+ '-',
+ '/',
+ ),
),
),
));
diff --git a/webroot/rsrc/js/phuix/PHUIXAutocomplete.js b/webroot/rsrc/js/phuix/PHUIXAutocomplete.js
--- a/webroot/rsrc/js/phuix/PHUIXAutocomplete.js
+++ b/webroot/rsrc/js/phuix/PHUIXAutocomplete.js
@@ -343,6 +343,10 @@
return [' ', ':', ',', '.', '!', '?'];
},
+ _getIgnoreList: function() {
+ return this._map[this._active].ignore || [];
+ },
+
_isTerminatedString: function(string) {
var terminators = this._getTerminators();
for (var ii = 0; ii < terminators.length; ii++) {
@@ -517,6 +521,14 @@
}
}
+ var ignore = this._getIgnoreList();
+ for (ii = 0; ii < ignore.length; ii++) {
+ if (trim.indexOf(ignore[ii]) === 0) {
+ this._deactivate();
+ return;
+ }
+ }
+
// If the input is terminated by a space or another word-terminating
// punctuation mark, we're going to deactivate if the results can not
// be refined by addding more words.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 30, 4:08 AM (6 h, 23 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6807733
Default Alt Text
D17577.id42287.diff (3 KB)
Attached To
Mode
D17577: Don't summon the emoji autocompleter for ":3"
Attached
Detach File
Event Timeline
Log In to Comment