예제 #1
0
 public override bool HandleKeyDown(KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Space)
     {
         if (e.Shift)
         {
             _canvas.ScrollUp();
         }
         else
         {
             _canvas.ScrollDown();
         }
     }
     else if (e.KeyCode == Keys.Back)
     {
         _canvas.ScrollUp();
     }
     return(true);
 }
예제 #2
0
 public static void ScrollUp(EditorCanvas canvas)
 {
     canvas.ScrollUp();
 }