diff --git a/src/elogd.c b/src/elogd.c index a03f15c8..a321ae1f 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -10186,8 +10186,7 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL rsprintf("function kp(e)\n"); rsprintf("{\n"); - rsprintf(" var e = e || window.event;\n"); - rsprintf(" last_key = e.keyCode;\n"); + rsprintf(" last_key = (e.which) ? e.which : event.keyCode;\n"); rsprintf("}\n\n"); /* switch_smileys turn on/off the smiley bar by setting the smcmd, which in turn @@ -10361,8 +10360,7 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL loc("Submit")); rsprintf("\n", loc("Save")); - rsprintf("\n", - loc("Preview")); + rsprintf("\n", loc("Preview")); rsprintf("\n", loc("Back")); rsprintf("\n\n"); @@ -10803,7 +10801,7 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL strencode2(str, attrib[index], sizeof(str)); rsprintf - ("\n", + ("\n", fid, input_size, input_maxlen, ua, str); fid[0] = 0; @@ -11903,10 +11901,9 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL rsprintf("