Use a ScopedSetBool instead of manual set/unset for InputModes::Normal::m_in_on_key
This commit is contained in:
parent
5a93159012
commit
11f924c528
|
@ -200,8 +200,7 @@ public:
|
||||||
|
|
||||||
void on_key(Key key) override
|
void on_key(Key key) override
|
||||||
{
|
{
|
||||||
m_in_on_key.set();
|
ScopedSetBool set_in_on_key{m_in_on_key};
|
||||||
auto unset_in_on_key = on_scope_end([this]{ m_in_on_key.unset(); });
|
|
||||||
|
|
||||||
bool do_restore_hooks = false;
|
bool do_restore_hooks = false;
|
||||||
auto restore_hooks = on_scope_end([&, this]{
|
auto restore_hooks = on_scope_end([&, this]{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user