mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 22:16:14 +00:00
Removed unused variables in input_fields.cpp.
This commit is contained in:
@@ -1057,8 +1057,6 @@ void FlatInput::phPrepare(Painter &p, float64 placeholderFocused) {
|
|||||||
void FlatInput::keyPressEvent(QKeyEvent *e) {
|
void FlatInput::keyPressEvent(QKeyEvent *e) {
|
||||||
QString wasText(_oldtext);
|
QString wasText(_oldtext);
|
||||||
|
|
||||||
bool shift = e->modifiers().testFlag(Qt::ShiftModifier), alt = e->modifiers().testFlag(Qt::AltModifier);
|
|
||||||
bool ctrl = e->modifiers().testFlag(Qt::ControlModifier) || e->modifiers().testFlag(Qt::MetaModifier), ctrlGood = true;
|
|
||||||
if (_customUpDown && (e->key() == Qt::Key_Up || e->key() == Qt::Key_Down)) {
|
if (_customUpDown && (e->key() == Qt::Key_Up || e->key() == Qt::Key_Down)) {
|
||||||
e->ignore();
|
e->ignore();
|
||||||
} else {
|
} else {
|
||||||
@@ -3758,8 +3756,6 @@ void MaskedInputField::keyPressEvent(QKeyEvent *e) {
|
|||||||
QString wasText(_oldtext);
|
QString wasText(_oldtext);
|
||||||
int32 wasCursor(_oldcursor);
|
int32 wasCursor(_oldcursor);
|
||||||
|
|
||||||
bool shift = e->modifiers().testFlag(Qt::ShiftModifier), alt = e->modifiers().testFlag(Qt::AltModifier);
|
|
||||||
bool ctrl = e->modifiers().testFlag(Qt::ControlModifier) || e->modifiers().testFlag(Qt::MetaModifier), ctrlGood = true;
|
|
||||||
if (_customUpDown && (e->key() == Qt::Key_Up || e->key() == Qt::Key_Down)) {
|
if (_customUpDown && (e->key() == Qt::Key_Up || e->key() == Qt::Key_Down)) {
|
||||||
e->ignore();
|
e->ignore();
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user