Beispiel #1
0
 private void EnterFreeSelectionMode()
 {
     TerminalDocument document = _tag.Document;
     _selectionKeyProcessor = new SelectionKeyProcessor(this, document, document.CurrentLine, document.CaretColumn);
     _caretTimer.Interval = Win32.GetCaretBlinkTime()/2;
     GEnv.Frame.SetSelectionStatus(SelectionStatus.Free);
 }
Beispiel #2
0
 private void ExitFreeSelectionMode()
 {
     _selectionKeyProcessor = null;
     GEnv.Frame.SetSelectionStatus(SelectionStatus.None);
     GEnv.TextSelection.Clear();
     _caretTimer.Interval = Win32.GetCaretBlinkTime();
 }
Beispiel #3
0
        public void ToggleFreeSelectionMode()
        {
            if(_tag==null) return;
            if(InAutoSelectionMode) ExitAutoSelectionMode();

            if(_selectionKeyProcessor==null) {
                EnterFreeSelectionMode();
                TerminalDocument document = _tag.Document;
                _selectionKeyProcessor = new SelectionKeyProcessor(this, document, document.CurrentLine, document.CaretColumn);
                _caretTimer.Interval = Win32.GetCaretBlinkTime()/2;
                //GEnv.Frame.StatusBar.IndicateSelectionMode();
            }
            else {
                ExitFreeSelectionMode();
                _selectionKeyProcessor = null;
                GEnv.Frame.SetSelectionStatus(0);
                GEnv.TextSelection.Clear();
                _caretTimer.Interval = Win32.GetCaretBlinkTime();
            }

            if(_inIMEComposition) {
                ClearIMEComposition();
            }
        }