IDEA-80056 Column selection mode improvement

disable TypedHandlerDelegates for multicaret state, as they don't work properly now anyway
This commit is contained in:
Dmitry Batrak
2014-02-18 11:28:34 +04:00
parent 81adc91abc
commit eec124ae6c
@@ -138,7 +138,10 @@ public class TypedHandler extends TypedActionHandlerBase {
Project project = CommonDataKeys.PROJECT.getData(dataContext);
PsiFile file;
if (project == null || editor.isColumnMode() || (file = PsiUtilBase.getPsiFileInEditor(editor, project)) == null) {
if (project == null
|| editor.isColumnMode()
|| editor.getCaretModel().getAllCarets().size() > 1
|| (file = PsiUtilBase.getPsiFileInEditor(editor, project)) == null) {
if (myOriginalHandler != null){
myOriginalHandler.execute(editor, charTyped, dataContext);
}