2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Disabled ability to use hotkeys when selecting color in photo editor.

This commit is contained in:
23rd
2021-05-08 18:21:07 +03:00
parent 9dacf69d41
commit 8420b7dc17
3 changed files with 9 additions and 1 deletions

View File

@@ -166,7 +166,9 @@ PhotoEditor::PhotoEditor(
}
void PhotoEditor::handleKeyPress(not_null<QKeyEvent*> e) {
_content->handleKeyPress(e) || _controls->handleKeyPress(e);
if (!_colorPicker->preventHandleKeyPress()) {
_content->handleKeyPress(e) || _controls->handleKeyPress(e);
}
}
void PhotoEditor::save() {