1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:17:45 +00:00

LibGUI: Add EngineType to EditingEngine classes

This will allow users of EditingEngine classes to determine current type
of EditingEngine (currently either vim or regular).
This commit is contained in:
scwfri 2021-12-08 16:26:20 -06:00 committed by Andreas Kling
parent c9062b4ed5
commit fa94978a7e
3 changed files with 13 additions and 0 deletions

View file

@ -187,6 +187,8 @@ private:
bool on_key_in_insert_mode(const KeyEvent& event);
bool on_key_in_normal_mode(const KeyEvent& event);
bool on_key_in_visual_mode(const KeyEvent& event);
virtual EngineType engine_type() const override { return EngineType::Vim; }
};
}