Пример #1
0
        public void ProcessBufferedKeyInputs_Nothing()
        {
            var runCount = 0;

            _vimBuffer.KeyInputProcessed += delegate { runCount++; };
            _vimBuffer.ProcessBufferedKeyInputs();
            Assert.Equal(0, runCount);
        }
            private void OnTimerTick(object sender, EventArgs e)
            {
                try
                {
                    // If the Timer is still enabled then go ahead and process the buffered
                    // KeyInput values
                    if (_timer.IsEnabled)
                    {
                        _vimBuffer.ProcessBufferedKeyInputs();
                    }

                    _keyMappingTimeoutHandler.RaiseTick();
                }
                catch (Exception ex)
                {
                    _protectedOperations.Report(ex);
                }
            }