/// <summary> /// Pres the process wm key down_ up. /// </summary> /// <param name="m">The m.</param> /// <returns></returns> protected virtual bool PreProcessWmKeyDown_Up(ref Message m) { long pos = HexViewer.bytePosition; int cp = HexViewer.byteCharacterPosition; if (!(pos == 0 && cp == 0)) { pos = Math.Max(-1, pos - HexViewer.hexMaxHBytes); if (pos == -1) { return(true); } HexViewer.SetPosition(pos); if (pos < HexViewer.startByte) { HexViewer.PerformScrollLineUp(); } HexViewer.UpdateCaret(); HexViewer.Invalidate(); } HexViewer.ScrollByteIntoView(); HexViewer.ReleaseSelection(); return(true); }