Skip to content

Fix arrow key scrolling in hex dump view#312

Merged
brkzlr merged 2 commits intokorcankaraokcu:masterfrom
omorros:fix/hex-view-arrow-key-scroll
Feb 10, 2026
Merged

Fix arrow key scrolling in hex dump view#312
brkzlr merged 2 commits intokorcankaraokcu:masterfrom
omorros:fix/hex-view-arrow-key-scroll

Conversation

@omorros
Copy link
Copy Markdown
Contributor

@omorros omorros commented Feb 10, 2026

Closes #310

Summary

  • Added scroll_requested signal to QHexView that fires when pressing Up at row 0 or
    Down at the last row
  • Connected the signal in MemoryViewerWindow to scroll the hex dump by one row (16
    bytes)
  • Since QAsciiView inherits from QHexView, the fix applies to both hex and ASCII
    panels

Test plan

  • Open Memory Viewer and attach to a process
  • Click on a cell in the hex view
  • Press Down arrow repeatedly — should scroll when reaching the bottom row
  • Press Up arrow repeatedly — should scroll when reaching the top row
  • Verify normal arrow navigation between rows still works
  • Verify the ASCII view has the same scrolling behavior

@brkzlr
Copy link
Copy Markdown
Collaborator

brkzlr commented Feb 10, 2026

Tested it and it seems to work well.

There's just one slight issue if I may: When you scroll up/down once you reach the row limit, the selection highlight seems to stay at the previous value before the scroll started instead of following the actual current cell.

@omorros
Copy link
Copy Markdown
Contributor Author

omorros commented Feb 10, 2026

Updated, the selection should now follow the current cell when scrolling at the boundary. Thanks for testing!

@brkzlr brkzlr merged commit 4b37b2e into korcankaraokcu:master Feb 10, 2026
@brkzlr
Copy link
Copy Markdown
Collaborator

brkzlr commented Feb 10, 2026

Works fine now, thanks for the PR.

@omorros
Copy link
Copy Markdown
Contributor Author

omorros commented Feb 10, 2026

Thanks for the quick review and merge! ;)

@omorros omorros deleted the fix/hex-view-arrow-key-scroll branch February 10, 2026 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Using arrow keys will not scroll hex dump view inside Memory View

2 participants