Go to file
Daniel Tschlatscher 94d84581c2 fix: gui: up/down arrow keys increment/decrement twice in Number field
When the up or down arrow key on the keyboard was pressed while a
number text field (or any one descending from Ext.form.field.Spinner)
was selected, the up and down callbacks for that text fields KeyNav
were called twice. Therefore, the value in the text field would always
incorrectly increment/decrement by step * 2.

The problem was an overwrite for the onRender() method of the Spinner
class, which caused the callbacks for pressing an arrow key to be
registered for a second time. Simply not doing that in the overwritten
onRender() method fixes the problem.

The redundant declarations for spinUpEl and spinDownEl were removed as
well. Additionally, the 'mousewheel' event handler, registered in the
overwritten (but still executed) parent function, is unregistered now,
as it could lead to unintended side effects in browsers which still
implement this event.

Signed-off-by: Daniel Tschlatscher <d.tschlatscher@proxmox.com>
2022-07-29 09:20:44 +02:00
debian bump version to 3.5.1 2022-05-16 18:04:07 +02:00
src fix: gui: up/down arrow keys increment/decrement twice in Number field 2022-07-29 09:20:44 +02:00
.gitignore add basic .gitignore 2021-06-29 12:21:06 +02:00
Makefile buildsys: change upload dist to bullseye 2021-06-08 09:46:54 +02:00