Commit 6bb9491f authored by gj4210's avatar gj4210 👽
Browse files

UPD: Ctrl in GlobalSearch opens in new tab

parent c9ced335
Pipeline #112394 passed with stages
in 11 minutes and 44 seconds
......@@ -165,7 +165,11 @@ export default {
},
suggestionClicked (e, suggestion) {
if (suggestion.type === 'page' && this.$router.currentRoute !== suggestion.url) {
this.$router.push(suggestion.url)
if (e.ctrlKey) {
window.open(this.$router.resolve(suggestion.url).href, '_blank')
} else {
this.$router.push(suggestion.url)
}
}
if (suggestion.type === 'test') {
window.console.log('Clicked test suggestion: ' + suggestion.name[0] + suggestion.name[1] + suggestion.name[2])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment