Fixed special click redirection on search suggestion (#125)

This commit is contained in:
alistair3149 2020-06-09 21:23:46 -04:00 committed by GitHub
parent 6c4cef36f9
commit 18884fb6a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -581,7 +581,10 @@ window.WMTypeAhead = function ( appendTo, searchInput ) {
addEvent( searchEl, 'blur', function ( e ) {
clearTypeAhead();
forceLinkFollow( e );
// Don't interfere with special clicks (e.g. to open in new tab)
if ( !( e.which !== 1 || e.altKey || e.ctrlKey || e.shiftKey || e.metaKey ) ) {
forceLinkFollow( e );
}
} );
return {