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

TI-nspire CX CAS: Unexpected Behavior in Relations Menu #348

Closed
cgloeckner opened this issue Oct 7, 2024 · 14 comments · Fixed by #349
Closed

TI-nspire CX CAS: Unexpected Behavior in Relations Menu #348

cgloeckner opened this issue Oct 7, 2024 · 14 comments · Fixed by #349

Comments

@cgloeckner
Copy link

cgloeckner commented Oct 7, 2024

Hi,

since a picture says more than a thousand words:

menu_bug-2024-10-07_20.28.07.mp4

This only happens on that exact same menu with =, < etc. The menu cannot be closed with Esc anymore; pressing Enter to insert a symbol makes things even worse. Only the touchpad keys / keyboard arrowkeys help here.

Tested with:

  • firebird-emu v1.6
  • using TI-Nspire CX CAS v4.5.5.79
  • using Ubuntu (everything's fine on Android)

glocke

@Vogtinator
Copy link
Member

Looks like somehow the right touchpad arrow is stuck. I cannot reprodue the issue here (Also Linux, but Plasma instead of GNOME).

Does the issue also happen if the keypad is below the screen (portrait mode)?

@cgloeckner
Copy link
Author

Yes, this happens also in portrait mode and in normal desktop mode (non-mobile view) on my Ubuntu computer. I'm running xfce.

@complanar
Copy link

complanar commented Oct 8, 2024

I can confirm the above mentioned bug. Also Linux on Xfce. Maybe I discovered a related bug.

Pressing [AltGr] + [ß] (on german keyboards between [0] (zero) and [←] (backspace) brings up the trigonometric functions. After pressing it twice or three times, sometimes at the first try something similar happens:

vokoscreenNG-2024-10-08_21-45-34.mp4

As mentioned above only pressing the arrow key can stop this.

It does not happen, when bringing up the trigonometry menu with the virtual handheld keyboard, at least I never saw it happen and could not force it.

[EDIT:] On german keyboard layouts [AltGr] + [ß] should result in a backslash \ . [AltGr] is the key right of the space bar.

  • Firebird: 1.6
  • Nspire OS: 4.5.4.48
  • Linux Mint 21.3 with Xfce Desktop

@Vogtinator
Copy link
Member

Got it! It happens if you release the AltGr key before ß, which causes the trig key to get stuck. This means the release event doesn't get mapped properly.

@Vogtinator
Copy link
Member

#349 should fix this, it works reliably here.

Vogtinator added a commit to Vogtinator/firebird-fork that referenced this issue Oct 8, 2024
@cgloeckner
Copy link
Author

#349 should fix this, it works reliably here.

I tried it: This fixes the trigonometry menu but not the relations menu.

@Vogtinator
Copy link
Member

I tried it: This fixes the trigonometry menu but not the relations menu.

Using the keyboard or the keypad widget?

@cgloeckner
Copy link
Author

I was talking about entering the relations menu via the virtual calculator keypad :-)

@complanar
Copy link

Could it be that the first issue (relations menu) is dependent on the current state of the emulator?

Sometimes it happens, sometimes not. If I restart firebird with a clean new boot image and flash everything seems to work. The relations menu only starts to behave weird, after some presses on the physical keyboard, especially if there were some modifier keys involved. I could not yet find out which key presses are the "bad" ones.

If I then save a snapshot and load from that snapshot later, the relations menu is broken from the beginning.

@cgloeckner Did you try out the patched version with an "old" snapshot or a completely new kit?

@cgloeckner
Copy link
Author

Did you try out the patched version with an "old" snapshot or a completely new kit?

I tried the patch version with an existing snapshot, which confirms your theory.

@Vogtinator
Copy link
Member

Is there some stuck key visible in the keypad when it's broken (without loading a snapshot)?

@Vogtinator
Copy link
Member

Actually, I can reproduce the issue easily straight after boot:

  1. Press Ctrl and release it again
  2. Press Shift
  3. Press 0 (Shift + 0 -> =)
  4. Release 0

The relations menu opens. It cycles through the options until shift is released.

I added some logging but it looked exactly as expected. I grabbed my CX and indeed, same behaviour! If you hold Shift while opening the relations menu, it cycles through options!

Other menus don't behave that way, so I guess this is just a calc OS bug?

@cgloeckner
Copy link
Author

Omg yes: seems like its a OS bug. But releasing the shift key stops the behavior on the handheld

Is there some stuck key visible in the keypad when it's broken (without loading a snapshot)?

I cannot see any visible keys being pressed/stuck on the emu's keypad.

@complanar
Copy link

complanar commented Oct 11, 2024

I grabbed my CX and indeed, same behaviour! If you hold Shift while opening the relations menu, it cycles through options!

I can confirm that this "bug" is still present in OS 6.2.0.333 although maybe this can't be considered a bug. The shift key is just not intended to be held on the handhelds, obviously that's why it is sticky.

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

Successfully merging a pull request may close this issue.

3 participants