mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-146484 vcs: history - do not register doubleclick shortcut on commit message area
This commit is contained in:
@@ -641,6 +641,8 @@ public class FileHistoryPanelImpl extends PanelWithActionsAndCloseButton {
|
||||
|
||||
myDualView.setCellWrapper(new MyCellWrapper(sessionGetter));
|
||||
|
||||
myDualView.installDoubleClickHandler(new MyDiffAction());
|
||||
|
||||
final TableView flatView = myDualView.getFlatView();
|
||||
TableViewModel sortableModel = flatView.getTableViewModel();
|
||||
sortableModel.setSortable(true);
|
||||
@@ -768,19 +770,9 @@ public class FileHistoryPanelImpl extends PanelWithActionsAndCloseButton {
|
||||
}
|
||||
|
||||
final MyDiffAction diffAction = new MyDiffAction();
|
||||
diffAction.registerCustomShortcutSet(CommonShortcuts.getDiff(), null);
|
||||
result.add(diffAction);
|
||||
if (!popup) {
|
||||
List<Shortcut> shortcuts = new SmartList<Shortcut>();
|
||||
ContainerUtil.addAll(shortcuts, CommonShortcuts.getDiff().getShortcuts());
|
||||
ContainerUtil.addAll(shortcuts, CommonShortcuts.DOUBLE_CLICK_1.getShortcuts());
|
||||
CustomShortcutSet shortcutSet = new CustomShortcutSet(ContainerUtil.toArray(shortcuts, new Shortcut[shortcuts.size()]));
|
||||
|
||||
diffAction.registerCustomShortcutSet(shortcutSet, myDualView.getFlatView());
|
||||
diffAction.registerCustomShortcutSet(shortcutSet, myDualView.getTreeView());
|
||||
}
|
||||
else {
|
||||
diffAction.registerCustomShortcutSet(CommonShortcuts.getDiff(), this);
|
||||
}
|
||||
result.add(ActionManager.getInstance().getAction("Vcs.ShowDiffWithLocal"));
|
||||
|
||||
final AnAction diffGroup = ActionManager.getInstance().getAction(VCS_HISTORY_ACTIONS_GROUP);
|
||||
|
||||
Reference in New Issue
Block a user