diff --git a/README.md b/README.md index 685d0dd..651d963 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Eagler Mobile LogoEagler Mobile +# Eagler Mobile LogoEagler Mobile @@ -39,7 +39,7 @@ If you found a bug or have a suggestion [create an issue]([https://github.com/Sc #### Keyboard Events - The EaglerCraft client captures keypress through a `keydown` event listener. Because Android devices currently have an issue with `keydown` and `keyup` events, Eagler Mobile dynamically toggles between capturing `keydown` and `input` events. The state is saved in window.keyboardFix, and is toggled if a faulty keyboard event is detected. - To dispatch keyboard events, Eagler Mobile requires the use of the `keyEvent` function, in order to maintain functionality for `input` event listeners. For example, typing an uppercase `h` in the chat is as simple as: - ``` + ```js keyEvent("shift", "keydown"); keyEvent("h", "keydown"); ```