개정판 38d69491
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