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

keys +, -, (, ) not working for ion module in the browser (when developing my scripts online) #2235

Open
MatejTymes opened this issue Sep 24, 2024 · 4 comments
Assignees

Comments

@MatejTymes
Copy link

MatejTymes commented Sep 24, 2024

Describe the bug

i'm writing a python script but pressing the +, -, ( and ) keys are not recognized in the web browser (during script development) but work on the calculator

Screenshots

initial state
image
was able to move the graph (using arrows) and enter into trace mode (pressing enter/exe/ok):
image
but + and - does not zoom the graph (it does on the calculator)

To Reproduce

  1. Open this 3d graph viewing app:
    https://my.numworks.com/python/mty/draw_3d_graph
  2. Pressing arrow moves the graph
  3. Pressing enter/exe/ok switches into tracing mode
  4. Pressing + or - does not zoom the graph (but it does on the calculator)
    All are done via the ion.keydown(KEY_LEFT), ion.keydown(KEY_PLUS), ...

Expected behavior

pressing + or - should be recognized via the ion module in the browser

Environment

  • Epsilon version: n/a
  • The platform(s) on which the problem happens: online simulator
@MatejTymes MatejTymes changed the title + and - not working in the browser (when developing my scripts online) + and - not working for ion module in the browser (when developing my scripts online) Sep 24, 2024
@MatejTymes MatejTymes changed the title + and - not working for ion module in the browser (when developing my scripts online) keys +, -, (, ) not working for ion module in the browser (when developing my scripts online) Sep 26, 2024
@RedGl0w
Copy link
Contributor

RedGl0w commented Sep 27, 2024

This issue has been mentioned earlier (in #1555 for instance). d0a79c2 should fix it.

@MatejTymes
Copy link
Author

the commit/fix is 4 years old, but the issue seems to be still present

penduan pushed a commit to penduan/epsilon that referenced this issue Sep 28, 2024
@adri1numworks
Copy link

adri1numworks commented Oct 1, 2024

Hi, thank you for reaching out. I created an issue internally, we will make sure keys are recognized. In addition, we are planning to allow user to load a script to the simulator, so that one will be able to use simulator's keys.

I'll let you know once this is done

Linked to #2087

@mobluse
Copy link

mobluse commented Nov 1, 2024

A temporary solution, until more keys are supported in the emulators, could be to use Shift+Up to zoom in, Shift+Down to zoom out, Shift+Left as (, Shift+Right as ), as alternatives to the other keys. Toolbox+arrow_keys for other movements, see https://my.numworks.com/python/mobluse/anykeys

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants