DearPyGui icon indicating copy to clipboard operation
DearPyGui copied to clipboard

(Input Text) Double-input on "tab" key press when `tab_input` is True

Open Atlamillias opened this issue 3 years ago • 0 comments

DearPyGui v1.6.2 on Windows 10/11

When tab input is enabled for text inputs, it "tabs" twice on a single tab key press. It is the length of 8 "spacebar" key presses instead of the expected 4 (or 2, if you're into that I guess). I edited a screenshot that might explain this better...

image

Here's the code I used for the above screenshot.

dpg.create_context()
dpg.create_viewport()
dpg.setup_dearpygui()

with dpg.window(width=400):
    dpg.add_input_text(label="Input ('space' x4)", tab_input=True, width=250)
    dpg.add_input_text(label="Input ('tab' x1)", tab_input=True, width=250)

dpg.show_viewport()
dpg.start_dearpygui()
dpg.destroy_context()

Atlamillias avatar May 06 '22 19:05 Atlamillias