summaryrefslogtreecommitdiffstats
path: root/mbbsd/bbs.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-20 00:25:39 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-20 00:25:39 +0800
commit9af2fcafb5c2b0743abf9a55ee2a8d1245933cb7 (patch)
treeff637e2c6aeec056ed5141cd3baf0f8a0bf2f29e /mbbsd/bbs.c
parenta2c803335ee0562bb60a8aa8ae668d12bd413cb3 (diff)
downloadpttbbs-9af2fcafb5c2b0743abf9a55ee2a8d1245933cb7.tar
pttbbs-9af2fcafb5c2b0743abf9a55ee2a8d1245933cb7.tar.gz
pttbbs-9af2fcafb5c2b0743abf9a55ee2a8d1245933cb7.tar.bz2
pttbbs-9af2fcafb5c2b0743abf9a55ee2a8d1245933cb7.tar.lz
pttbbs-9af2fcafb5c2b0743abf9a55ee2a8d1245933cb7.tar.xz
pttbbs-9af2fcafb5c2b0743abf9a55ee2a8d1245933cb7.tar.zst
pttbbs-9af2fcafb5c2b0743abf9a55ee2a8d1245933cb7.zip
- move 'B' (edit board title) to 'b' in board_config (i/I), and B now also activates board_config (B/i/I).
This helps to work in compatible with M3 hotkeys. - add '_' key binding (M3) for push_bottom (^X now) git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4209 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/bbs.c')
-rw-r--r--mbbsd/bbs.c33
1 files changed, 4 insertions, 29 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index fdce8fe5..c8134c3d 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -3642,33 +3642,6 @@ b_notes_edit(void)
}
static int
-bh_title_edit(void)
-{
- boardheader_t *bp;
-
- if (currmode & MODE_BOARD) {
- char genbuf[BTLEN];
-
- assert(0<=currbid-1 && currbid-1<MAX_BOARD);
- bp = getbcache(currbid);
- move(1, 0);
- clrtoeol();
- getdata_str(1, 0, "請輸入看板新中文敘述:", genbuf,
- BTLEN - 16, DOECHO, bp->title + 7);
-
- if (!genbuf[0])
- return 0;
- strip_ansi(genbuf, genbuf, STRIP_ALL);
- strlcpy(bp->title + 7, genbuf, sizeof(bp->title) - 7);
- assert(0<=currbid-1 && currbid-1<MAX_BOARD);
- substitute_record(fn_board, bp, sizeof(boardheader_t), currbid);
- log_usies("SetBoard", currboard);
- return FULLUPDATE;
- }
- return 0;
-}
-
-static int
b_notes(void)
{
char buf[PATHLEN];
@@ -3962,7 +3935,7 @@ const onekey_t read_comms[] = {
{ 0, NULL }, { 0, NULL }, { 0, NULL }, { 0, NULL }, { 0, NULL },
{ 0, NULL }, { 0, NULL }, { 0, NULL },
{ 0, NULL }, // 'A' 65
- { 0, bh_title_edit }, // 'B'
+ { 0, b_config }, // 'B'
{ 1, do_limitedit }, // 'C'
{ 1, del_range }, // 'D'
{ 1, edit_post }, // 'E'
@@ -3991,7 +3964,9 @@ const onekey_t read_comms[] = {
{ 1, recommend }, // 'X'
{ 1, recommend_cancel }, // 'Y'
{ 0, NULL }, // 'Z' 90
- { 0, NULL }, { 0, NULL }, { 0, NULL }, { 0, NULL }, { 0, NULL }, { 0, NULL },
+ { 0, NULL }, { 0, NULL }, { 0, NULL }, { 0, NULL },
+ { 1, push_bottom }, // '_' 95
+ { 0, NULL },
{ 0, NULL }, // 'a' 97
{ 0, b_notes }, // 'b'
{ 1, cite_post }, // 'c'