Swap HOME/END for ScrollLocked mode. This fix confusion when End key move

history to begin point.

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
ray 2013-11-24 00:15:57 +00:00
parent ce629391a4
commit ac5298a605

View File

@ -359,7 +359,7 @@ vt_scrollmode_kbdevent(struct vt_window *vw, int c, int console)
break;
}
case FKEY | F(49): /* Home key. */
vt_scroll(vw, 0, VHS_END);
vt_scroll(vw, 0, VHS_SET);
break;
case FKEY | F(50): /* Arrow up. */
vt_scroll(vw, -1, VHS_CUR);
@ -369,7 +369,7 @@ vt_scrollmode_kbdevent(struct vt_window *vw, int c, int console)
vt_scroll(vw, -size.tp_row, VHS_CUR);
break;
case FKEY | F(57): /* End key. */
vt_scroll(vw, 0, VHS_SET);
vt_scroll(vw, 0, VHS_END);
break;
case FKEY | F(58): /* Arrow down. */
vt_scroll(vw, 1, VHS_CUR);