Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Enter key does not work in keyboard compatibility mode #18

Closed
FlamedDogo99 opened this issue Jun 16, 2024 · 2 comments
Closed

[Bug] Enter key does not work in keyboard compatibility mode #18

FlamedDogo99 opened this issue Jun 16, 2024 · 2 comments
Labels
bug Something isn't working
Milestone

Comments

@FlamedDogo99
Copy link
Owner

Describe the Bug
Related to #13
When using input events, nothing is dispatched when pressing the return key

Fix
Wrap hiddenInput with a form that uses onSubmit

<form onsubmit="keyEvent('return', 'keydown')">
  <input type="text", id="hiddenInput">
  <input type="submit", style="opacity: 0">
</form>

Steps to Reproduce

  1. Start EaglerCraft client with Eagler Mobile
  2. Set window.keyboardFix to true
  3. Join a server or create a new world
  4. Press the chat 💬 button on the top row of buttons
  5. Press the keyboard ⌨️ button on the top row of buttons
  6. Note that pressing the enter key does not comment anything

Additional Information
This issue will occur on any device when window.keyboardFix == true

@FlamedDogo99 FlamedDogo99 added the bug Something isn't working label Jun 16, 2024
@FlamedDogo99 FlamedDogo99 added this to the v3.1.0 milestone Jun 16, 2024
@FlamedDogo99
Copy link
Owner Author

Using beforeinput event listener with inputType insertLineBreak is much easier.

@FlamedDogo99
Copy link
Owner Author

This has been fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant