Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/AppController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ void AppController::initialize() {
m_autoPaste = group.readEntry("AutoPaste", false);
const int supportedPasteShortcuts =
TextOutput::CtrlV | TextOutput::CtrlShiftV | TextOutput::ShiftInsert;
int configuredPasteShortcuts = group.readEntry("PasteShortcuts", int(TextOutput::ShiftInsert));
int configuredPasteShortcuts =
group.readEntry("PasteShortcuts", int(TextOutput::CtrlV | TextOutput::CtrlShiftV | TextOutput::ShiftInsert));
configuredPasteShortcuts &= supportedPasteShortcuts;
if (configuredPasteShortcuts == 0)
configuredPasteShortcuts = TextOutput::ShiftInsert;
Expand Down
3 changes: 2 additions & 1 deletion src/AppController.h
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ class AppController final : public QObject {
QString m_modelPath;
QString m_language = QStringLiteral("en");
bool m_autoPaste = false;
TextOutput::PasteShortcuts m_pasteShortcuts = TextOutput::ShiftInsert;
TextOutput::PasteShortcuts m_pasteShortcuts =
TextOutput::CtrlV | TextOutput::CtrlShiftV | TextOutput::ShiftInsert;
int m_recordingLimitMinutes = 5;
qreal m_level = 0.0;
};
2 changes: 1 addition & 1 deletion src/TextOutput.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class TextOutput : public QObject {
void scheduleX11Paste(const QString &xdotool, const QStringList &arguments);
void startPaste(const QString &program, const QStringList &arguments, const QString &success);
std::unique_ptr<Platform> m_platform;
PasteShortcuts m_pasteShortcuts = ShiftInsert;
PasteShortcuts m_pasteShortcuts = CtrlV | CtrlShiftV | ShiftInsert;
};

Q_DECLARE_OPERATORS_FOR_FLAGS(TextOutput::PasteShortcuts)
Loading