You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the issue tracker for open issues that relate to the same problem, before opening a new one.
This issue only relates to a single bug. I will open new issues for any other problems.
Describe the bug
When making a numeric entry like in this official example it does not recognise comma and separator inputs, making it impossible to have a nice number only entry field with big numeric keys keyboard (important for my usecase).
How to reproduce
Compile and run the example code on mobile
Try to type in comma and separators as shown in the video
Screenshots
1000001124.mp4
Example code
package main
import (
"fyne.io/fyne/v2""fyne.io/fyne/v2/app""fyne.io/fyne/v2/driver/mobile""fyne.io/fyne/v2/widget"
)
// An entry widget that pops a number-only keyboard on mobiletypenumberKeyboardEntrystruct {
widget.Entry
}
func (e*numberKeyboardEntry) Keyboard() mobile.KeyboardType {
returnmobile.NumberKeyboard
}
// cb is a callback that gets in true when focusing and false when unfocusingfuncNewNumberKeyboardEntry() *numberKeyboardEntry {
e:=&numberKeyboardEntry{}
e.Wrapping=fyne.TextWrap(fyne.TextTruncateClip)
e.ExtendBaseWidget(e)
returne
}
funcmain() {
app:=app.New()
window:=app.NewWindow("Bugtest - Mobile NumberKeyboard Entry")
window.SetPadded(false)
window.Resize(fyne.NewSize(500, 600))
window.CenterOnScreen()
numkey:=widget.NewFormItem("NumberKeyboard", NewNumberKeyboardEntry())
norkey:=widget.NewFormItem("Normal", widget.NewEntry())
window.SetContent(widget.NewForm(numkey, norkey))
window.ShowAndRun()
}
Fyne version
2.5.1
Go compiler version
1.23.0
Operating system and version
Artix Linux amd64
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Checklist
Describe the bug
When making a numeric entry like in this official example it does not recognise comma and separator inputs, making it impossible to have a nice number only entry field with big numeric keys keyboard (important for my usecase).
How to reproduce
Screenshots
1000001124.mp4
Example code
Fyne version
2.5.1
Go compiler version
1.23.0
Operating system and version
Artix Linux amd64
Additional Information
No response
The text was updated successfully, but these errors were encountered: