mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-204581 Shortcut conflict for Ctrl+F5 in Find view
GitOrigin-RevId: 775d2a3c64be1f1aaf58dc684c78ddb55be745ad
This commit is contained in:
committed by
intellij-monorepo-bot
parent
8c32ff37e4
commit
70a730b1c4
@@ -5,6 +5,8 @@ import com.intellij.openapi.actionSystem.ActionPromoter
|
||||
import com.intellij.openapi.actionSystem.AnAction
|
||||
import com.intellij.openapi.actionSystem.CommonDataKeys
|
||||
import com.intellij.openapi.actionSystem.DataContext
|
||||
import com.intellij.usages.UsageView
|
||||
import com.intellij.usages.actions.RerunSearchAction
|
||||
import com.intellij.usages.impl.actions.RuleAction
|
||||
|
||||
class UsageViewActionPromoter : ActionPromoter {
|
||||
@@ -13,6 +15,9 @@ class UsageViewActionPromoter : ActionPromoter {
|
||||
if (CommonDataKeys.EDITOR.getData(context) != null) {
|
||||
return actions.filter { it !is RuleAction }
|
||||
}
|
||||
if (UsageView.USAGE_VIEW_KEY.getData(context) != null) {
|
||||
return actions.filterIsInstance<RerunSearchAction>()
|
||||
}
|
||||
return actions.filterIsInstance<RuleAction>()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user