From 6fe346e6ece9a2acfcfc52af770b057953151745 Mon Sep 17 00:00:00 2001 From: Aleksey Pivovarov Date: Wed, 4 May 2016 14:09:09 +0300 Subject: [PATCH] IDEA-154620 ui: fix handling of shortcuts with second stroke for local actions We need `myFoundComponent` to survive till the next action event, because is is used to find local actions (registered with `registerWithCustomShortcutSet`) in `inSecondStrokeInProgressState`. It is a WeakReference, so this will not cause memory leaks. It was broken in 9b6176d --- .../com/intellij/openapi/keymap/impl/KeyProcessorContext.java | 1 - 1 file changed, 1 deletion(-) diff --git a/platform/platform-impl/src/com/intellij/openapi/keymap/impl/KeyProcessorContext.java b/platform/platform-impl/src/com/intellij/openapi/keymap/impl/KeyProcessorContext.java index e832caae4775..51ae40d45995 100644 --- a/platform/platform-impl/src/com/intellij/openapi/keymap/impl/KeyProcessorContext.java +++ b/platform/platform-impl/src/com/intellij/openapi/keymap/impl/KeyProcessorContext.java @@ -98,6 +98,5 @@ public class KeyProcessorContext { myActions.clear(); myFocusOwner = null; myDataContext = null; - myFoundComponent = null; } } \ No newline at end of file