diff --git a/doc/terminator_config.5 b/doc/terminator_config.5 index f8a38470..2612bdfb 100644 --- a/doc/terminator_config.5 +++ b/doc/terminator_config.5 @@ -66,7 +66,7 @@ Default value: \fBascii\-del\fR .TP .B delete_binding Sets what code the delete key generates. Possible values are "ascii-del" for the ASCII DEL character, "control-h" for Control-H (AKA the ASCII BS character), "escape-sequence" for the escape sequence typically bound to backspace or delete. "escape-sequence" is normally considered the correct setting for the Delete key. -Default value: \fBdelete\-sequence\fR +Default value: \fBescape\-sequence\fR .TP .B cursor_blink \fR(boolean) Controls if the cursor blinks. diff --git a/terminatorlib/prefs_profile.py b/terminatorlib/prefs_profile.py index 8e57feda..51ac6d55 100644 --- a/terminatorlib/prefs_profile.py +++ b/terminatorlib/prefs_profile.py @@ -75,6 +75,18 @@ class ProfileEditor: widget.append_text ('right') widget.append_text ('disabled') widget.set_active (0) + elif key == 'backspace_binding': + widget = gtk.combo_box_new_text() + widget.append_text ('ascii-del') + widget.append_text ('control-h') + widget.append_text ('escape-sequence') + widget.set_active (0) + elif key == 'delete_binding': + widget = gtk.combo_box_new_text() + widget.append_text ('ascii-del') + widget.append_text ('control-h') + widget.append_text ('escape-sequence') + widget.set_active (2) elif key == 'focus': widget = gtk.combo_box_new_text() widget.append_text ('click')