diff options
author | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-06-15 10:56:54 -0400 |
---|---|---|
committer | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-06-15 10:56:54 -0400 |
commit | 1cfdc24fdfdf05605870c835b3bf72ea7d3268a1 (patch) | |
tree | a7759509b823634ff9b93ed2ee047dff99e54600 /src | |
parent | 4f5e7046b74a37737cc3264c10d37a60482bd329 (diff) |
revert default backspace behaviour
- this prevents it from conflicting with tab or other keys in certain setups
Diffstat (limited to 'src')
-rw-r--r-- | src/textfield.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/textfield.rs b/src/textfield.rs index e521f3c..c23924c 100644 --- a/src/textfield.rs +++ b/src/textfield.rs @@ -115,11 +115,7 @@ impl<'a> JoshutoTextField<'a> { curr_pos = unicode_width::UnicodeWidthStr::width(&line_buffer.as_str()[..pos]); completion_tracker.take(); } - } else if ch == ncurses::KEY_BACKSPACE - || ch == 127 - || ch == 9 - || ch == KEYMAP_T.backspace - { + } else if ch == KEYMAP_T.backspace { if line_buffer.backspace(1) { let pos = line_buffer.pos(); curr_pos = unicode_width::UnicodeWidthStr::width(&line_buffer.as_str()[..pos]); |