2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 22:46:10 +00:00

Added Ctrl+E and Ctrl+O shortcut to edit media.

This commit is contained in:
23rd
2019-03-30 11:53:28 +03:00
committed by John Preston
parent be2b2cbf7e
commit 6e69069ba2
2 changed files with 20 additions and 2 deletions

View File

@@ -10,6 +10,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "boxes/abstract_box.h"
#include "storage/storage_media_prepare.h"
#include "ui/wrap/slide_wrap.h"
#include <rpl/event_stream.h>
namespace ChatHelpers {
class TabbedPanel;
@@ -46,6 +47,7 @@ protected:
void paintEvent(QPaintEvent *e) override;
void resizeEvent(QResizeEvent *e) override;
void keyPressEvent(QKeyEvent *e) override;
private:
void updateBoxSize();
@@ -108,6 +110,7 @@ private:
QString _newMediaPath;
bool _isAllowedEditMedia = false;
bool _isNotAlbum;
rpl::event_stream<> _editMediaClicks;
QString _error;