mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-81078 Ctrl+backspace shortcut should be supported in "File structure" popup window in IDEA 11,1
This commit is contained in:
@@ -434,6 +434,13 @@ public class FileStructurePopup implements Disposable {
|
||||
}
|
||||
}.registerCustomShortcutSet(shortcutSet, panel);
|
||||
|
||||
new AnAction() {
|
||||
@Override
|
||||
public void actionPerformed(AnActionEvent e) {
|
||||
mySpeedSearch.setEnteredPrefix("");
|
||||
}
|
||||
}.registerCustomShortcutSet(CustomShortcutSet.fromString(SystemInfo.isMac ? "meta BACK_SPACE" : "control BACK_SPACE"), myTree);
|
||||
|
||||
new AnAction() {
|
||||
public void actionPerformed(AnActionEvent e) {
|
||||
if (mySpeedSearch != null && mySpeedSearch.isPopupActive()) {
|
||||
|
||||
@@ -276,6 +276,13 @@ public abstract class SpeedSearchBase<Comp extends JComponent> extends SpeedSear
|
||||
return mySearchPopup != null ? mySearchPopup.mySearchField.getText() : null;
|
||||
}
|
||||
|
||||
public void setEnteredPrefix(@NotNull String text) {
|
||||
if (mySearchPopup != null) {
|
||||
mySearchPopup.mySearchField.setText(text);
|
||||
mySearchPopup.refreshSelection();
|
||||
}
|
||||
}
|
||||
|
||||
public void refreshSelection() {
|
||||
if ( mySearchPopup != null ) mySearchPopup.refreshSelection();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user