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

CTRL + "=": panic: runtime error: index out of range [0] with length 0 #89

Open
xaionaro opened this issue Jul 11, 2024 · 2 comments · May be fixed by #90
Open

CTRL + "=": panic: runtime error: index out of range [0] with length 0 #89

xaionaro opened this issue Jul 11, 2024 · 2 comments · May be fixed by #90

Comments

@xaionaro
Copy link

xaionaro commented Jul 11, 2024

Hello.

I use Linux with XOrg server, and if run fyneterm, select russian layout and then click combination <ctrl + equals (key "=")> then it immediately panics:

xaionaro@void:~$ fyneterm
panic: runtime error: index out of range [0] with length 0

goroutine 20 [running]:
github.com/fyne-io/terminal.(*Terminal).TypedShortcut(0xc000480000, {0xd712e0?, 0xc0022596e0?})
	/home/xaionaro/.gvm/pkgsets/go1.22.1/global/pkg/mod/github.com/fyne-io/terminal@v0.0.0-20240628092338-cee53fe6c43c/input.go:170 +0x23b
fyne.io/fyne/v2/internal/driver/glfw.(*window).triggersShortcut.func1()
	/home/xaionaro/.gvm/pkgsets/go1.22.1/global/pkg/mod/fyne.io/fyne/v2@v2.4.6-0.20240617212519-759df6f70f7e/internal/driver/glfw/window.go:907 +0x24
fyne.io/fyne/v2/internal/driver/common.(*Window).RunEventQueue(...)
	/home/xaionaro/.gvm/pkgsets/go1.22.1/global/pkg/mod/fyne.io/fyne/v2@v2.4.6-0.20240617212519-759df6f70f7e/internal/driver/common/window.go:35
created by fyne.io/fyne/v2/internal/driver/glfw.(*gLDriver).createWindow.func1 in goroutine 1
	/home/xaionaro/.gvm/pkgsets/go1.22.1/global/pkg/mod/fyne.io/fyne/v2@v2.4.6-0.20240617212519-759df6f70f7e/internal/driver/glfw/window.go:961 +0x136

Repro: 4/4.

This issue does not cause me any problems, decided to report just in case.

andydotxyz added a commit that referenced this issue Jul 11, 2024
@andydotxyz andydotxyz linked a pull request Jul 11, 2024 that will close this issue
@andydotxyz
Copy link
Member

Feel free to check out the PR @xaionaro - it should fix the issue.

@xaionaro
Copy link
Author

It helped :)

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

Successfully merging a pull request may close this issue.

2 participants