Skip to content
Snippets Groups Projects
Commit e0a1031f authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Make Ctrl-D an alias for DEL (to delete messages)

For terminals that can't easily send a DEL (0x7F) character.
As requested by phigz in IRC.
parent 89a06273
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
...@@ -980,6 +980,7 @@ function list_msgs(msgbase, list, current, preview, grp_name, sub_name) ...@@ -980,6 +980,7 @@ function list_msgs(msgbase, list, current, preview, grp_name, sub_name)
for(var i in list) for(var i in list)
list[i].flagged = flagged; list[i].flagged = flagged;
break; break;
case CTRL_D:
case KEY_DEL: case KEY_DEL:
if(!list[current]) if(!list[current])
break; break;
...@@ -1035,6 +1036,7 @@ function list_msgs(msgbase, list, current, preview, grp_name, sub_name) ...@@ -1035,6 +1036,7 @@ function list_msgs(msgbase, list, current, preview, grp_name, sub_name)
case '-': case '-':
current--; current--;
break; break;
case CTRL_D:
case KEY_DEL: case KEY_DEL:
if(msgbase.cfg && !msg_area.sub[msgbase.cfg.code].is_operator) if(msgbase.cfg && !msg_area.sub[msgbase.cfg.code].is_operator)
break; break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment