window: recognize home/end in more terminal emulators

This commit is contained in:
Andrzej Rybczak
2016-01-18 14:04:46 +01:00
parent b3473e290c
commit 3a94ad886e
2 changed files with 6 additions and 0 deletions

1
NEWS
View File

@@ -1,4 +1,5 @@
ncmpcpp 0.7.3 (????-??-??) ncmpcpp 0.7.3 (????-??-??)
* Home and End keys are now recognized in a few specific terminal emulators.
ncmpcpp-0.7.2 (2016-01-16) ncmpcpp-0.7.2 (2016-01-16)
* Attempt to add non-song item to playlist from search engine doesn't trigger assertion failure anymore. * Attempt to add non-song item to playlist from search engine doesn't trigger assertion failure anymore.

View File

@@ -819,6 +819,11 @@ Key::Type Window::getInputChar(int key)
return Key::Right; return Key::Right;
case 'D': case 'D':
return Key::Left; return Key::Left;
// terminator
case 'F':
return Key::End;
case 'H':
return Key::Home;
// rxvt // rxvt
case 'a': case 'a':
return Key::Ctrl | Key::Up; return Key::Ctrl | Key::Up;