프로젝트

일반

사용자정보

개정판 38d69491

ID38d69491020d2a565b7158e53b39c70500b84548
상위 3276cb1c
하위 92c9cab8

김태성이(가) 약 일년 전에 추가함

issue #00000 ctrl+S입력시 텍스트박스 입력 완료 되도록 수정

Change-Id: Id4ab97a53ab61022f5a2ac4d5ae63cd14338c2a7

차이점 보기:

KCOM/Events/Event_KeyEvent.cs
2 2
using KCOM.Events;
3 3
using MarkupToPDF.Common;
4 4
using MarkupToPDF.Controls.Parsing;
5
using MarkupToPDF.Controls.Text;
5 6
using System;
6 7
using System.Collections.Generic;
7 8
using System.ComponentModel;
......
125 126
                    {
126 127
                        if (ViewerDataModel.Instance.IsPressCtrl && (App.ViewInfo.CreateFinalPDFPermission || App.ViewInfo.NewCommentPermission))
127 128
                        {
128
                            //컨트롤을 그리는 도중일 경우 컨트롤 삭제
129
                            ViewerDataModel.Instance.MarkupControls_USER.Remove(this.dzMainMenu.currentControl);
129
                            var text_item_ = ViewerDataModel.Instance.MarkupControls_USER.Where(data => (data as TextControl) != null && (data as TextControl).IsEditingMode == true).FirstOrDefault();
130
                            if (text_item_ != null)
131
                            {
132
                                (text_item_ as TextControl).Base_TextBlock.Visibility = Visibility.Visible;
133
                                (text_item_ as TextControl).Base_TextBox.Visibility = Visibility.Collapsed;
134
                                (text_item_ as TextControl).UnEditingMode();
135

  
136
                                SelectionSet.Instance.UnSelect(ViewerDataModel.Instance.SystemMain.dzMainMenu);
137
                            }
138

  
139
                            var Arrowtext_item_ = ViewerDataModel.Instance.MarkupControls_USER.Where(data => (data as ArrowTextControl) != null && (data as ArrowTextControl).IsEditingMode == true).FirstOrDefault();
140
                            if (Arrowtext_item_ != null && ((Arrowtext_item_ as ArrowTextControl).IsNew == false))
141
                            {
142
                                (Arrowtext_item_ as ArrowTextControl).IsEditingMode = false;
143
                                (Arrowtext_item_ as ArrowTextControl).Base_TextBox.Focusable = false;
144
                                (Arrowtext_item_ as ArrowTextControl).UnEditingMode();
145

  
146
                                SelectionSet.Instance.UnSelect(ViewerDataModel.Instance.SystemMain.dzMainMenu);
147
                            }
148

  
149
                            if (text_item_ == null && Arrowtext_item_ == null)
150
                            {                                 //컨트롤을 그리는 도중일 경우 컨트롤 삭제
151
                                ViewerDataModel.Instance.MarkupControls_USER.Remove(this.dzMainMenu.currentControl);
152
                            }
153

  
130 154
                            this.dzMainMenu.currentControl = null;
131 155

  
132 156
                            //this.dzTopMenu.SaveEvent(null, null);

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)