This commit is contained in:
parhelia512 2025-09-19 08:46:12 +08:00 committed by GitHub
parent a8941f8801
commit 6965ea1717
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -124,7 +124,7 @@ namespace Qv2ray::ui::widgets {
const bool isTab = (e->modifiers().testFlag(Qt::NoModifier) && e->key() == Qt::Key_Tab);
const bool isOtherSpace = e->text() == " ";
//
if (isSpace || isTab || isOtherSpace) {
if (isSpace && !lineUnderCursor().startsWith("processName:") && !lineUnderCursor().startsWith("processPath:") || isTab || isOtherSpace) {
QToolTip::showText(this->mapToGlobal(QPoint(0, 0)), tr("You can not input space characters here."), this, QRect{}, 2000);
return;
}