Support INSERT in accelerator, fixes #398.

This commit is contained in:
Cheng Zhao 2014-06-14 22:25:21 +08:00
parent b431566421
commit 2cdcb45d16

View file

@ -129,6 +129,8 @@ bool StringToAccelerator(const std::string& description,
key = ui::VKEY_BACK; key = ui::VKEY_BACK;
} else if (tokens[i] == "delete") { } else if (tokens[i] == "delete") {
key = ui::VKEY_DELETE; key = ui::VKEY_DELETE;
} else if (tokens[i] == "insert") {
key = ui::VKEY_INSERT;
} else if (tokens[i] == "enter" || tokens[i] == "return") { } else if (tokens[i] == "enter" || tokens[i] == "return") {
key = ui::VKEY_RETURN; key = ui::VKEY_RETURN;
} else if (tokens[i] == "up") { } else if (tokens[i] == "up") {