Aircoookie / WLED

Control WS2812B and many more types of digital RGB LEDs with an ESP8266 or ESP32 over WiFi!
https://kno.wled.ge
MIT License
14.85k stars 3.2k forks source link

Android Chromium numeric entry doesn't allow negative values #4216

Open zim514 opened 6 days ago

zim514 commented 6 days ago

What happened?

On Android in Chromium browsers, the Hour and Minute fields only show a numeric keypad, allowing the characters 0123456789.,

This prevents entering a negative value in the sunset minute field, to schedule a preset before sunset.

To Reproduce Bug

1) On Android chrome webview, navigate to http://{instance-url}/settings/time 2) Attempt to enter a negative value in the sunset or sunrise minute field

Expected Behavior

Entering negative values in these fields should be allowed

Install Method

Self-Compiled

What version of WLED?

0.15.0-b6

Which microcontroller/board are you seeing the problem on?

ESP32

Relevant log/trace output

N/A

Anything else?

Using 0_15 branch from github with some unneeded features disabled and a couple usermods that shouldn't affect this...

  -D WLED_ENABLE_PIXART
  -D USERMOD_TETRISAI
  -D WLED_DISABLE_ALEXA  
  -D WLED_DISABLE_MQTT
  -D WLED_DISABLE_LOXONE
  -D WLED_DISABLE_INFRARED
  -D WLED_WATCHDOG_TIMEOUT=3
 # -D IR_ENABLE_DEFAULT=false
  -D SERVERNAME="\"Quad\""
  -D CLIENT_SSID=REDACTED
  -D CLIENT_PASS=REDACTED
  -D USERMOD_ANIMARTRIX
  -D USERMOD_AUTO_SAVE
  -D AUTOSAVE_AFTER_SEC=10
  -D AUTOSAVE_PRESET_NUM=100
  -D USERMOD_AUTO_SAVE_ON_BOOT=true

Code of Conduct

DedeHai commented 6 days ago

thanks for reporting. I cannot reproduce this on Android wled native app. No problem entering negative values, ther is a "-" in the top left of the keypad.

zim514 commented 6 days ago

OK after further testing... I don't have a - sign with Samsung Keyboard but I do with Gboard by Google, however mine is on the top right. I suspect there are localisation / language differences as well. I don't know how much (if any) control web pages have on input methods.