示例#1
0
 private void OnKeyInputProcessed(object sender, KeyInputProcessedEventArgs e)
 {
     if (sender is IVimBuffer vimBuffer)
     {
         OnInputModeRelatedEvent(vimBuffer);
     }
 }
示例#2
0
 private void OnKeyInputProcessed(IVimBuffer vimBuffer, KeyInputProcessedEventArgs e)
 {
     if (_completionBroker.IsCompletionActive(vimBuffer.TextView))
     {
         // If the buffer is not in insert mode or it just transitioned into insert mode
         // then don't let intellisense stay active.  Else intellisense will be popping
         // up when normal mode keys are used to navigate around the buffer
         if (vimBuffer.ModeKind != ModeKind.Insert || e.ProcessResult.IsAnySwitch)
         {
             _completionBroker.DismissAllSessions(vimBuffer.TextView);
         }
     }
 }
示例#3
0
 private void OnKeyInputProcessed(IVimBuffer vimBuffer, KeyInputProcessedEventArgs e)
 {
     if (_completionBroker.IsCompletionActive(vimBuffer.TextView))
     {
         // If the buffer is not in insert mode or it just transitioned into insert mode
         // then don't let intellisense stay active.  Else intellisense will be popping
         // up when normal mode keys are used to navigate around the buffer
         if (vimBuffer.ModeKind != ModeKind.Insert || e.ProcessResult.IsAnySwitch)
         {
             _completionBroker.DismissAllSessions(vimBuffer.TextView);
         }
     }
 }
 private void OnKeyInputProcessed(object sender, KeyInputProcessedEventArgs e)
 {
     UpdateShowCommandText();
 }
示例#5
0
 /// <summary>
 /// When a KeyInput value is processed then it should stop the timer if it's
 /// currently running.  Actually processing a KeyInput means it wasn't buffered
 /// </summary>
 private void OnKeyInputProcessed(object sender, KeyInputProcessedEventArgs args)
 {
     _timer.Stop();
 }
 /// <summary>
 /// When a KeyInput value is processed then it should stop the timer if it's
 /// currently running.  Actually processing a KeyInput means it wasn't buffered
 /// </summary>
 private void OnKeyInputProcessed(object sender, KeyInputProcessedEventArgs args)
 {
     _timer.Stop();
 }