diff --git a/Inputs/Keyboard.hpp b/Inputs/Keyboard.hpp index 56105b279..0b4a4120c 100644 --- a/Inputs/Keyboard.hpp +++ b/Inputs/Keyboard.hpp @@ -46,6 +46,8 @@ class Keyboard { /// Constructs a Keyboard that declares itself to observe only members of @c observed_keys. Keyboard(const std::set &observed_keys, const std::set &essential_modifiers); + virtual ~Keyboard() {} + // Host interface. /// @returns @c true if the key press affects the machine; @c false otherwise.