mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Zero-latency typing: skip Paste with existing selection
This commit is contained in:
@@ -999,7 +999,8 @@ public final class EditorImpl extends UserDataHolderBase implements EditorEx, Hi
|
||||
AnActionListener.Adapter actionListener = new AnActionListener.Adapter() {
|
||||
@Override
|
||||
public void beforeActionPerformed(AnAction action, DataContext dataContext, AnActionEvent event) {
|
||||
if (isZeroLatencyTypingEnabled() && IMMEDIATE_EDITING_ACTIONS.contains(action.getClass())) {
|
||||
if (isZeroLatencyTypingEnabled() && IMMEDIATE_EDITING_ACTIONS.contains(action.getClass()) &&
|
||||
!(action.getClass() == PasteAction.class && mySelectionModel.hasSelection())) {
|
||||
myImmediateEditingInProgress = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user