diff --git a/src/MenuItem.h b/src/MenuItem.h index c6acceac..a95e352b 100644 --- a/src/MenuItem.h +++ b/src/MenuItem.h @@ -82,12 +82,12 @@ class MenuItem { void setText(const char* text) { this->text = text; }; /** * @brief Process a command decoded in 1 byte. - * It can be a printable charactor or a control command like `ENTER` or `LEFT`. - * Return value is used to determine operation was successfull or ignored. + * It can be a printable character or a control command like `ENTER` or `LEFT`. + * Return value is used to determine operation was successful or ignored. * If the parent of item received that handle was ignored it can execute it's own action on this command. * Thus, the item always has priority in processing; if it is ignored, it is delegated to the parent element. * Behaviour is very similar to Even Bubbling in JavaScript. - * @param c the character, can be a printable charactor or a control command + * @param c the character, can be a printable character or a control command * @return true if command was successfully handled by item. */ virtual bool process(const unsigned char c) { return false; }; diff --git a/src/input/KeyboardAdapter.h b/src/input/KeyboardAdapter.h index c55b6c35..9d94161b 100644 --- a/src/input/KeyboardAdapter.h +++ b/src/input/KeyboardAdapter.h @@ -79,7 +79,7 @@ class KeyboardAdapter : public InputInterface { Stream* stream = NULL; /** * Internal state of current code set. - * As stream receives bytes asyncronously, multiple bytes command can arrive + * As stream receives bytes asynchronously, multiple bytes command can arrive * in several calls. Need to store current state between calls. */ CodeSet codeSet = CodeSet::C0;