Skip to content

fix(ui): apply tags on Shift + Numpad Enter - #1577

Closed
sanketpatel32 wants to merge 1 commit into
TagStudioDev:mainfrom
sanketpatel32:devin/fix-numpad-enter-shift
Closed

sanketpatel32 wants to merge 1 commit into
TagStudioDev:mainfrom
sanketpatel32:devin/fix-numpad-enter-shift

Conversation

@sanketpatel32

Copy link
Copy Markdown

Summary

Fixes #1555. In the "Add Tag" field (and other AutofillLineEdits), Shift+Numpad Enter did nothing — numpad Enter events carry KeypadModifier alongside ShiftModifier, so the exact-equality check modifiers() == ShiftModifier failed and the event was treated as a plain Enter. The check now tests the shift bit, so Shift+Numpad Enter correctly emits shift_return_pressed (add tag to all selected files).

Tasks Completed

  • Platforms Tested:
    • Windows x86
    • Windows ARM
    • macOS x86
    • macOS ARM
    • Linux x86
    • Linux ARM
  • Tested For:
    • Basic functionality (test suite + pre-commit hooks passing)
    • PyInstaller executable

Shift+Numpad Enter carries KeypadModifier alongside ShiftModifier, so
the exact-equality modifier check in AutofillLineEdit emitted
'return_pressed' instead of 'shift_return_pressed'. Tests the shift
bit instead.

Fixes TagStudioDev#1555
@CyanVoxel CyanVoxel closed this Nov 23, 2026
@TrigamDev TrigamDev added the Type: Invalid This doesn't seem right label Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Invalid This doesn't seem right

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: "Add Tag" Numpad Enter Doesn't Respect Shift Modifier

3 participants