개정판 b627aa5a
issue #0000 id2용으로 수정
Change-Id: I0d6c62813f9647d785dd7392f0563ad049e82117
KCOM/Events/Event_KeyEvent.cs | ||
---|---|---|
247 | 247 |
#region FIND(Ctrl + F) |
248 | 248 |
case Key.F: |
249 | 249 |
{ |
250 |
if (ViewerDataModel.Instance.IsPressCtrl) |
|
251 |
{ |
|
252 |
if (!this.dzMainMenu.searchPane.IsPinned) |
|
253 |
{ |
|
254 |
this.dzMainMenu.searchPane.IsPinned = true; |
|
255 |
if (ViewerDataModel.Instance.searchPDF != null) |
|
256 |
{ |
|
257 |
Application.Current.Dispatcher.BeginInvoke(new Action(() => |
|
258 |
{ |
|
259 |
this.dzMainMenu.searchPanel_Instance.tbSearch.Focusable = true; |
|
260 |
this.dzMainMenu.searchPanel_Instance.tbSearch.Focus(); |
|
261 |
Keyboard.Focus(this.dzMainMenu.searchPanel_Instance.tbSearch); |
|
262 |
}), System.Windows.Threading.DispatcherPriority.Render); |
|
263 |
} |
|
264 |
else |
|
265 |
{ |
|
266 |
this.dzMainMenu.searchPanel_Instance.btnSearch.Focus(); |
|
267 |
} |
|
268 |
} |
|
269 |
else |
|
270 |
{ |
|
271 |
this.dzMainMenu.searchPane.IsPinned = false; |
|
272 |
this.dzMainMenu.searchPane.IsActive = false; |
|
273 |
//this.dzMainMenu.searchPane.IsHidden = true; |
|
274 |
} |
|
275 |
} |
|
250 |
//if (ViewerDataModel.Instance.IsPressCtrl)
|
|
251 |
//{
|
|
252 |
// if (!this.dzMainMenu.searchPane.IsPinned)
|
|
253 |
// {
|
|
254 |
// this.dzMainMenu.searchPane.IsPinned = true;
|
|
255 |
// if (ViewerDataModel.Instance.searchPDF != null)
|
|
256 |
// {
|
|
257 |
// Application.Current.Dispatcher.BeginInvoke(new Action(() =>
|
|
258 |
// {
|
|
259 |
// this.dzMainMenu.searchPanel_Instance.tbSearch.Focusable = true;
|
|
260 |
// this.dzMainMenu.searchPanel_Instance.tbSearch.Focus();
|
|
261 |
// Keyboard.Focus(this.dzMainMenu.searchPanel_Instance.tbSearch);
|
|
262 |
// }), System.Windows.Threading.DispatcherPriority.Render);
|
|
263 |
// }
|
|
264 |
// else
|
|
265 |
// {
|
|
266 |
// this.dzMainMenu.searchPanel_Instance.btnSearch.Focus();
|
|
267 |
// }
|
|
268 |
// }
|
|
269 |
// else
|
|
270 |
// {
|
|
271 |
// this.dzMainMenu.searchPane.IsPinned = false;
|
|
272 |
// this.dzMainMenu.searchPane.IsActive = false;
|
|
273 |
// //this.dzMainMenu.searchPane.IsHidden = true;
|
|
274 |
// }
|
|
275 |
//}
|
|
276 | 276 |
} |
277 | 277 |
break; |
278 | 278 |
#endregion |
내보내기 Unified diff