프로젝트

일반

사용자정보

개정판 91e84544

ID91e84544667c0b5a72b22a5d2dd17b1c563bf3b8
상위 f06cce07
하위 10de973b

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

방향키에 의한 이미지 이동

Change-Id: I9d9e7798483d896119c283ed71bdb0b058e1a3c7

차이점 보기:

KCOM/Events/Event_KeyEvent.cs
23 23
        public double CumulativeWheel = 0;
24 24
        MarkupToPDF.Controls.Parsing.MarkupParser.MarkupReturn markupReturn = new MarkupToPDF.Controls.Parsing.MarkupParser.MarkupReturn();
25 25
                
26
        public void KeyEventDownAction(object sender, KeyEventArgs e)
26
        public async void KeyEventDownAction(object sender, KeyEventArgs e)
27 27
        {
28
            if (e.IsRepeat && !ViewerDataModel.Instance.IsPressCtrl && !ViewerDataModel.Instance.IsPressShift)
29
                return;
30

  
28
            //if (e.IsRepeat && !ViewerDataModel.Instance.IsPressCtrl && !ViewerDataModel.Instance.IsPressShift)
29
            //    return;
30
            await this.Dispatcher.InvokeAsync(() => {
31 31
            switch (e.Key)
32 32
            {
33 33
                //강인구 추가
......
253 253
                case Key.Up:
254 254
                case Key.Down:
255 255
                    {
256
                        if(sender is UIElement)
257
                        {
258
                            (sender as UIElement).SetValue(TabNavigationExtensions.IsTabStopProperty, false);
259
                        }
260

  
256 261
                        Point? MovePoint = null;
257 262
                        if ((e.Key == Key.NumPad5) || (e.Key == Key.Down))
258 263
                        {
......
280 285
                            }
281 286
                            else
282 287
                            {
283
                                if (ViewerDataModel.Instance.IsPressCtrl)
284
                                {
288
                                //if (ViewerDataModel.Instance.IsPressCtrl)
289
                                //{
285 290
                                    bool IsMovePossibility = false;
286 291

  
287 292
                                    var instance = ViewerDataModel.Instance;
......
325 330

  
326 331
                                        System.Diagnostics.Debug.WriteLine(this.dzMainMenu.zoomAndPanControl.ContentOffsetX);
327 332
                                    }
328
                                }
333
                                //}
329 334
                            }
330 335
                        }
331 336
                    }
......
339 344
                    this.dzMainMenu.pageNavigator.GotoPage(Convert.ToInt32(Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.pageNavigator.CurrentPage.PageNumber) + 1);
340 345
                    break;
341 346
            }
347
            });
342 348
        }
343 349

  
344 350

  

내보내기 Unified diff

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