mirror of https://github.com/procxx/kepka.git
Fix support mode sending.
This commit is contained in:
parent
d8a58991c4
commit
8d94cfb61b
|
@ -316,7 +316,7 @@ HistoryWidget::HistoryWidget(
|
||||||
connect(
|
connect(
|
||||||
_field,
|
_field,
|
||||||
&Ui::InputField::submitted,
|
&Ui::InputField::submitted,
|
||||||
[=](Qt::KeyboardModifiers modifiers) { send(modifiers); });
|
[=](Qt::KeyboardModifiers modifiers) { send(false, modifiers); });
|
||||||
connect(_field, &Ui::InputField::cancelled, [=] {
|
connect(_field, &Ui::InputField::cancelled, [=] {
|
||||||
escape();
|
escape();
|
||||||
});
|
});
|
||||||
|
@ -685,7 +685,7 @@ void HistoryWidget::supportShareContact(Support::Contact contact) {
|
||||||
if (!history) {
|
if (!history) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
send(Support::SkipSwitchModifiers());
|
send(false, Support::SkipSwitchModifiers());
|
||||||
auto options = ApiWrap::SendOptions(history);
|
auto options = ApiWrap::SendOptions(history);
|
||||||
options.handleSupportSwitch = Support::HandleSwitch(modifiers);
|
options.handleSupportSwitch = Support::HandleSwitch(modifiers);
|
||||||
session().api().shareContact(
|
session().api().shareContact(
|
||||||
|
@ -5255,7 +5255,7 @@ void HistoryWidget::keyPressEvent(QKeyEvent *e) {
|
||||||
const auto submitting = Ui::InputField::ShouldSubmit(
|
const auto submitting = Ui::InputField::ShouldSubmit(
|
||||||
session().settings().sendSubmitWay(),
|
session().settings().sendSubmitWay(),
|
||||||
e->modifiers());
|
e->modifiers());
|
||||||
send(e->modifiers());
|
send(false, e->modifiers());
|
||||||
}
|
}
|
||||||
} else if (e->key() == Qt::Key_O && e->modifiers() == Qt::ControlModifier) {
|
} else if (e->key() == Qt::Key_O && e->modifiers() == Qt::ControlModifier) {
|
||||||
chooseAttach();
|
chooseAttach();
|
||||||
|
|
Loading…
Reference in New Issue