diff --git a/src/winio.c b/src/winio.c
index 487365d7c95ca53b31782307595992fb314e326e..08faf5b6c03c452073b3d7b8c1cbe1ff3307e52f 100644
--- a/src/winio.c
+++ b/src/winio.c
@@ -478,7 +478,8 @@ int parse_kbinput(WINDOW *win, bool *meta_key, bool *func_key
 #ifdef KEY_SDC
 			/* Slang doesn't support KEY_SDC. */
 			case KEY_SDC:
-			    retval = NANO_DELETE_KEY;
+			    retval = ISSET(REBIND_DELETE) ?
+				NANO_BACKSPACE_KEY : NANO_DELETE_KEY;
 			    break;
 #endif
 #ifdef KEY_SEND