mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-02-26 01:11:16 -05:00
fix typo
This commit is contained in:
parent
70127bad4b
commit
7bb9ea201c
@ -693,7 +693,7 @@ bool AutoType::windowMatchesUrl(const QString& windowTitle, const QString& resol
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool AutoType::checkSynatx(const QString &string)
|
bool AutoType::checkSyntax(const QString &string)
|
||||||
{
|
{
|
||||||
//checks things like {word 23}{F1 23}{~ 23}{% 23}{^}{F12}{(}{) 23}{[}{[}{]}{Delay=23}{+}{-}~+%@fixedstring
|
//checks things like {word 23}{F1 23}{~ 23}{% 23}{^}{F12}{(}{) 23}{[}{[}{]}{Delay=23}{+}{-}~+%@fixedstring
|
||||||
QString allowRepetition = "(\\s[0-9]*){0,1}";
|
QString allowRepetition = "(\\s[0-9]*){0,1}";
|
||||||
|
@ -42,7 +42,7 @@ public:
|
|||||||
bool registerGlobalShortcut(Qt::Key key, Qt::KeyboardModifiers modifiers);
|
bool registerGlobalShortcut(Qt::Key key, Qt::KeyboardModifiers modifiers);
|
||||||
void unregisterGlobalShortcut();
|
void unregisterGlobalShortcut();
|
||||||
int callEventFilter(void* event);
|
int callEventFilter(void* event);
|
||||||
static bool checkSynatx(const QString &string);
|
static bool checkSyntax(const QString &string);
|
||||||
static bool checkHighRepetition(const QString &string);
|
static bool checkHighRepetition(const QString &string);
|
||||||
static bool checkHighDelay(const QString &string);
|
static bool checkHighDelay(const QString &string);
|
||||||
|
|
||||||
|
@ -766,7 +766,7 @@ void EditEntryWidget::updateEntryData(Entry* entry) const
|
|||||||
entry->setDefaultAutoTypeSequence(QString());
|
entry->setDefaultAutoTypeSequence(QString());
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (!AutoType::checkSynatx(m_autoTypeUi->sequenceEdit->text())) {
|
if (!AutoType::checkSyntax(m_autoTypeUi->sequenceEdit->text())) {
|
||||||
//@TODO handle wrong syntax
|
//@TODO handle wrong syntax
|
||||||
std::cout << "wrong syntax\n";
|
std::cout << "wrong syntax\n";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user