bindings: add support for parsing/displaying insert key
This commit is contained in:
@@ -51,6 +51,8 @@ Key stringToSpecialKey(const std::string &s)
|
|||||||
result = Key(KEY_SPACE, Key::Standard);
|
result = Key(KEY_SPACE, Key::Standard);
|
||||||
else if (!s.compare("enter"))
|
else if (!s.compare("enter"))
|
||||||
result = Key(KEY_ENTER, Key::Standard);
|
result = Key(KEY_ENTER, Key::Standard);
|
||||||
|
else if (!s.compare("insert"))
|
||||||
|
result = Key(KEY_IC, Key::NCurses);
|
||||||
else if (!s.compare("delete"))
|
else if (!s.compare("delete"))
|
||||||
result = Key(KEY_DC, Key::NCurses);
|
result = Key(KEY_DC, Key::NCurses);
|
||||||
else if (!s.compare("left"))
|
else if (!s.compare("left"))
|
||||||
|
|||||||
@@ -51,6 +51,8 @@ std::string keyToString(const Key &key, bool *print_backspace)
|
|||||||
result += "Space";
|
result += "Space";
|
||||||
else if (key == Key(KEY_ENTER, Key::Standard))
|
else if (key == Key(KEY_ENTER, Key::Standard))
|
||||||
result += "Enter";
|
result += "Enter";
|
||||||
|
else if (key == Key(KEY_IC, Key::NCurses))
|
||||||
|
result += "Insert";
|
||||||
else if (key == Key(KEY_DC, Key::NCurses))
|
else if (key == Key(KEY_DC, Key::NCurses))
|
||||||
result += "Delete";
|
result += "Delete";
|
||||||
else if (key == Key(KEY_RIGHT, Key::NCurses))
|
else if (key == Key(KEY_RIGHT, Key::NCurses))
|
||||||
@@ -88,8 +90,6 @@ std::string keyToString(const Key &key, bool *print_backspace)
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Help::Init()
|
void Help::Init()
|
||||||
|
|||||||
Reference in New Issue
Block a user