Add bindable double-click event (#374)

This commit is contained in:
Junegunn Choi
2015-10-13 02:24:38 +09:00
parent b4ce89bbf5
commit f80ff8c917
3 changed files with 195 additions and 184 deletions

View File

@@ -343,6 +343,8 @@ func parseKeyChords(str string, message string) map[int]string {
chord = curses.SLeft
case "shift-right":
chord = curses.SRight
case "double-click":
chord = curses.DoubleClick
default:
if len(key) == 6 && strings.HasPrefix(lkey, "ctrl-") && isAlphabet(lkey[5]) {
chord = curses.CtrlA + int(lkey[5]) - 'a'