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); }
public static void ScrollUp(EditorCanvas canvas) { canvas.ScrollUp(); }