IDEA-167143 Invalid focus switching in variables window

This commit is contained in:
Egor.Ushakov
2017-01-27 12:49:48 +03:00
parent 577af756c9
commit 332a0dccfd
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2016 JetBrains s.r.o.
* Copyright 2000-2017 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -263,7 +263,10 @@ public abstract class TreeInplaceEditor implements AWTEventListener {
return;
}
}
cancelEditing();
if (id != MouseEvent.MOUSE_RELEASED) { // do not cancel on release outside of the component
cancelEditing();
}
}
@Nullable