Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13961971
D15042.id36330.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D15042.id36330.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
@@ -507,7 +507,7 @@
'rsrc/js/phui/behavior-phui-object-box-tabs.js' => '2bfa2836',
'rsrc/js/phuix/PHUIXActionListView.js' => 'b5c256b8',
'rsrc/js/phuix/PHUIXActionView.js' => '8cf6d262',
- 'rsrc/js/phuix/PHUIXAutocomplete.js' => 'fc10c813',
+ 'rsrc/js/phuix/PHUIXAutocomplete.js' => '21dc9144',
'rsrc/js/phuix/PHUIXDropdownMenu.js' => 'bd4c8dca',
'rsrc/js/phuix/PHUIXFormControl.js' => '8fba1997',
'rsrc/js/phuix/PHUIXIconView.js' => 'bff6884b',
@@ -836,7 +836,7 @@
'phui-workpanel-view-css' => 'adec7699',
'phuix-action-list-view' => 'b5c256b8',
'phuix-action-view' => '8cf6d262',
- 'phuix-autocomplete' => 'fc10c813',
+ 'phuix-autocomplete' => '21dc9144',
'phuix-dropdown-menu' => 'bd4c8dca',
'phuix-form-control-view' => '8fba1997',
'phuix-icon-view' => 'bff6884b',
@@ -1004,6 +1004,12 @@
'javelin-stratcom',
'conpherence-thread-manager',
),
+ '21dc9144' => array(
+ 'javelin-install',
+ 'javelin-dom',
+ 'phuix-icon-view',
+ 'phabricator-prefab',
+ ),
'2290aeef' => array(
'javelin-install',
'javelin-dom',
@@ -2086,12 +2092,6 @@
'javelin-behavior-device',
'phabricator-keyboard-shortcut',
),
- 'fc10c813' => array(
- 'javelin-install',
- 'javelin-dom',
- 'phuix-icon-view',
- 'phabricator-prefab',
- ),
'fc91ab6c' => array(
'javelin-behavior',
'javelin-dom',
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
@@ -304,6 +304,14 @@
},
_onselect: function (e) {
+ if (!e.isNormalMouseEvent()) {
+ // Eat right clicks, control clicks, etc., on the results. These can
+ // not do anything meaningful and if we let them through they'll blur
+ // the field and dismiss the results.
+ e.kill();
+ return;
+ }
+
var target = e.getNode('typeahead-result');
for (var ii = 0; ii < this._listNodes.length; ii++) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Oct 16 2024, 7:20 AM (4 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6712634
Default Alt Text
D15042.id36330.diff (2 KB)
Attached To
Mode
D15042: Eat right-click, etc., on autocomplete suggestion menu
Attached
Detach File
Event Timeline
Log In to Comment