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

Page up/page down doesn't seem to work with InputTextMultiline #3430

Closed
jarrettchisholm opened this issue Aug 24, 2020 · 2 comments
Closed

Comments

@jarrettchisholm
Copy link

jarrettchisholm commented Aug 24, 2020

Version/Branch of Dear ImGui:
Back-end/Renderer/Compiler/OS

Dear ImGui 1.79 WIP (17803)
--------------------------------
sizeof(size_t): 4, sizeof(ImDrawIdx): 2, sizeof(ImDrawVert): 20
define: __cplusplus=199711
define: _WIN32
define: _MSC_VER=1927
--------------------------------
io.BackendPlatformName: imgui_impl_sdl
io.BackendRendererName: imgui_impl_opengl3
io.ConfigFlags: 0x00000000
io.ConfigInputTextCursorBlink
io.ConfigWindowsResizeFromEdges
io.ConfigWindowsMemoryCompactTimer = 60.0f
io.BackendFlags: 0x0000000E
 HasMouseCursors
 HasSetMousePos
 RendererHasVtxOffset
--------------------------------
io.Fonts: 1 fonts, Flags: 0x00000000, TexSize: 512,64
io.DisplaySize: 1280.00,720.00
io.DisplayFramebufferScale: 1.00,1.00
--------------------------------
style.WindowPadding: 8.00,8.00
style.WindowBorderSize: 1.00
style.FramePadding: 4.00,3.00
style.FrameRounding: 0.00
style.FrameBorderSize: 0.00
style.ItemSpacing: 8.00,4.00
style.ItemInnerSpacing: 4.00,4.00

My Issue/Question:

If I open the InputTextMultiline widget, and then add a bunch more text so that it is scrollable, and then hit page up or page down it does not do anything.

Is this a limitation of imgui?

@ocornut
Copy link
Owner

ocornut commented Aug 25, 2020

You are correct this is currently a missing feature in InputTextEx(), it needs to be added there.

(Note that PageUp/PageDown is otherwise supported by navigation (OUTSIDE of Multiline Input) but has to be explicitly enabled with the ImGuiConfigFlags_NavEnableKeyboard flag.)

ocornut pushed a commit that referenced this issue Sep 18, 2020
+ fix stb_textedit.h to build with C language (amend fbf7007)
@Xipiryon
Copy link
Contributor

@jarrettchisholm I've made the change, which is now on master ( ec945f4 ) :)

@ocornut ocornut closed this as completed Sep 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants