akiver / cs-demo-manager

Companion application for your Counter-Strike demos.
https://cs-demo-manager.com
MIT License
1.45k stars 195 forks source link

Issue with CTRL + LEFT/RIGHT ARROW hotkey precedence #913

Closed rintac closed 3 months ago

rintac commented 3 months ago

Describe the bug

If one is trying to jump between words with CTRL + LEFT/RIGHT ARROW when typing comments on a demo file page, CSDM switches to the previous/next demo file respectively. This is a little frustrating when paired with the fact that anything recently typed prior to hitting this specific hotkey combination is lost.

Demo links

No response

Steps to reproduce

  1. Begin typing a comment on the demo file page
  2. Attempt to use CTRL + LEFT/RIGHT ARROW to jump between words
  3. If any demos exist prior to and/or before the currently viewed demo, CSDM will switch to the demo in the direction the key combination was pressed; if not, then CTRL + LEFT/RIGHT ARROW will behave as expected

Expected behavior

I would expect the application to stop listening for these hotkeys when interacting with a textbox, specifically the comment textbox.

How often does this bug happen?

Every time

Log file

No response

Environment information

Version: 3.7.1 OS: win32 x64 10.0.19045 Electron: 31.2.0 Chrome: 126.0.6478.127 Last database migrations: v4 - 2024-08-19T14:55:01.916Z

Additional context

Thanks to any and all contributors of this awesome project!