| 1419 | } |
| 1420 | |
| 1421 | std::string getModifierString(const int modifiers) { |
| 1422 | std::string result; |
| 1423 | if (modifiers & MODIFIER_CTRL) { |
| 1424 | result += "Ctrl"; |
| 1425 | } |
| 1426 | if (modifiers & MODIFIER_ALT) { |
| 1427 | if (!result.empty()) |
| 1428 | result += "+"; |
| 1429 | result += "Alt"; |
| 1430 | } |
| 1431 | if (modifiers & MODIFIER_SHIFT) { |
| 1432 | if (!result.empty()) |
| 1433 | result += "+"; |
| 1434 | result += "Shift"; |
| 1435 | } |
| 1436 | if (modifiers & MODIFIER_SUPER) { |
| 1437 | if (!result.empty()) |
| 1438 | result += "+"; |
| 1439 | result += "Super"; |
| 1440 | } |
| 1441 | return result; |
| 1442 | } |
| 1443 | |
| 1444 | void InputBindings::startCapture(ToolMode mode, Action action) { |
| 1445 | capture_state_ = CaptureState{}; |
no test coverage detected