diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-05-14 18:28:44 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-05-14 18:28:44 +0800 |
commit | 6b355f85654856ee042969fae510bd3be57acf6e (patch) | |
tree | c6c5ef9a48ef673318111b419fb4a04dedc73628 | |
parent | 584b00dfc540b2911e865b81bf5e213905cd9b8a (diff) | |
download | pttbbs-6b355f85654856ee042969fae510bd3be57acf6e.tar pttbbs-6b355f85654856ee042969fae510bd3be57acf6e.tar.gz pttbbs-6b355f85654856ee042969fae510bd3be57acf6e.tar.bz2 pttbbs-6b355f85654856ee042969fae510bd3be57acf6e.tar.lz pttbbs-6b355f85654856ee042969fae510bd3be57acf6e.tar.xz pttbbs-6b355f85654856ee042969fae510bd3be57acf6e.tar.zst pttbbs-6b355f85654856ee042969fae510bd3be57acf6e.zip |
- add HOME/END in announce cursor movement (suggestion from PttBug)
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4310 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/announce.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/mbbsd/announce.c b/mbbsd/announce.c index 12875b51..ef8843bb 100644 --- a/mbbsd/announce.c +++ b/mbbsd/announce.c @@ -1121,9 +1121,15 @@ a_menu(const char *maintitle, const char *path, me.now = 0; break; + case KEY_HOME: case '0': me.now = 0; break; + case KEY_END: + case '$': + me.now = me.num - 1; + break; + case '?': case '/': if(me.num) { @@ -1131,9 +1137,6 @@ a_menu(const char *maintitle, const char *path, me.page = 9999; } break; - case '$': - me.now = me.num - 1; - break; case 'h': a_showhelp(me.level); me.page = 9999; |