mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 06:50:54 +07:00
CWM-9546 Copy paste manager didn't receive text on copy with selected text
more logging for root cause investigation GitOrigin-RevId: 193e535f196880c4ab460db5e1f513671b626a82
This commit is contained in:
committed by
intellij-monorepo-bot
parent
223625ac08
commit
0fa7fb3581
@@ -24,6 +24,7 @@ import com.intellij.openapi.client.ClientSystemInfo
|
||||
import com.intellij.openapi.components.serviceIfCreated
|
||||
import com.intellij.openapi.diagnostic.debug
|
||||
import com.intellij.openapi.diagnostic.logger
|
||||
import com.intellij.openapi.diagnostic.trace
|
||||
import com.intellij.openapi.keymap.KeyMapBundle
|
||||
import com.intellij.openapi.keymap.KeymapManager
|
||||
import com.intellij.openapi.keymap.KeymapUtil
|
||||
@@ -525,7 +526,7 @@ class IdeKeyEventDispatcher(private val queue: IdeEventQueue?) {
|
||||
if (actions.isEmpty()) {
|
||||
return false
|
||||
}
|
||||
|
||||
LOG.trace { "processAction(shortcut=$shortcut, actions=$actions)" }
|
||||
val contextComponent = PlatformCoreDataKeys.CONTEXT_COMPONENT.getData(context)
|
||||
val wrappedContext = Utils.createAsyncDataContext(context)
|
||||
val project = CommonDataKeys.PROJECT.getData(wrappedContext)
|
||||
@@ -563,6 +564,7 @@ class IdeKeyEventDispatcher(private val queue: IdeEventQueue?) {
|
||||
}
|
||||
Pair(chosen, false)
|
||||
} ?: Pair(null, false)
|
||||
LOG.trace { "updateResult: chosen=$chosen, doPerform=$doPerform" }
|
||||
val hasSecondStroke = chosen != null && this.context.secondStrokeActions.contains(chosen.action)
|
||||
if (e.id == KeyEvent.KEY_PRESSED && !hasSecondStroke && (chosen != null || !wouldBeEnabledIfNotDumb.isEmpty())) {
|
||||
ignoreNextKeyTypedEvent = true
|
||||
|
||||
Reference in New Issue
Block a user