Fix case where a context ends up locked in no-hooks mode
This commit is contained in:
parent
fab9c92006
commit
3f733569ed
|
@ -102,10 +102,13 @@ public:
|
||||||
else if (key == Key::Backspace)
|
else if (key == Key::Backspace)
|
||||||
m_count /= 10;
|
m_count /= 10;
|
||||||
else if (key == '\\')
|
else if (key == '\\')
|
||||||
|
{
|
||||||
|
if (not m_hooks_disabled)
|
||||||
{
|
{
|
||||||
m_hooks_disabled = true;
|
m_hooks_disabled = true;
|
||||||
context().disable_user_hooks();
|
context().disable_user_hooks();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (m_hooks_disabled)
|
if (m_hooks_disabled)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user