(String id, String name)
| 146 | } |
| 147 | */ |
| 148 | public static UserKey createFromStrings(String id, String name) { |
| 149 | UserKey u = new UserKey(); |
| 150 | u.command_id = Integer.parseInt(id); |
| 151 | u.modificator = withModificator(name); |
| 152 | if (u.modificator) |
| 153 | name = name.substring(1); |
| 154 | u.key = getKeyCode(name); |
| 155 | return u; |
| 156 | } |
| 157 | |
| 158 | private static int getKeyCode(String name) { |
| 159 | for (int i = 0; i < COUNT_KEY_NAMES; i++) |
no test coverage detected