We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe89cfe commit 5935f6cCopy full SHA for 5935f6c
1 file changed
Source/Heavy/ExportingProgressView.h
@@ -98,19 +98,15 @@ class ExporterConsole : public Component
98
99
bool keyPressed(const KeyPress& key) override
100
{
101
- // Ctrl+C or Cmd+C to copy
102
- if ((key.getModifiers().isCtrlDown() || key.getModifiers().isCommandDown()) &&
103
- key.getKeyCode() == 'C')
+ if (key == KeyPress('c', ModifierKeys::commandModifier, 0)) {
104
105
if (hasSelection())
106
107
copySelectionToClipboard();
108
return true;
109
}
110
111
- // Ctrl+A or Cmd+A to select all
112
- else if ((key.getModifiers().isCtrlDown() || key.getModifiers().isCommandDown()) &&
113
- key.getKeyCode() == 'A')
+ else if (key == KeyPress('a', ModifierKeys::commandModifier, 0)) {
114
115
updateGlyphPositions();
116
0 commit comments