Skip to content

Fix global hotkey paste issue#820

Merged
sabrogden merged 1 commit intosabrogden:masterfrom
codernirdesh:fix-global-hotkey-paste
Mar 19, 2025
Merged

Fix global hotkey paste issue#820
sabrogden merged 1 commit intosabrogden:masterfrom
codernirdesh:fix-global-hotkey-paste

Conversation

@codernirdesh
Copy link
Copy Markdown
Contributor

Add functionality to handle repeated key presses for global hot keys without releasing the CTRL key.

  • src/HotKeys.cpp: Add logic to detect and handle repeated key presses in the CHotKey::Register, CHotKey::Unregister, and CHotKey::ValidateHotKey methods. Add a new method HandleRepeatedKeyPresses to the CHotKey class. Add a new member variable m_lastKeyPressTime to the CHotKey class.
  • src/HotKeys.h: Add a new method HandleRepeatedKeyPresses to the CHotKey class. Add a new member variable m_lastKeyPressTime to the CHotKey class.
  • src/MainFrm.cpp: Modify the OnHotKey function to handle repeated key presses without releasing the CTRL key. Add logic to detect and handle repeated key presses in the OnHotKey function. Add a new member variable m_lastKeyPressTime to the CMainFrame class. Add a new method HandleRepeatedKeyPresses to the CMainFrame class.
  • src/MainFrm.h: Add a new member variable m_lastKeyPressTime to the CMainFrame class. Add a new method HandleRepeatedKeyPresses to the CMainFrame class.
  • src/QuickPaste.cpp: Modify the ShowQPasteWnd function to handle repeated key presses without releasing the CTRL key. Add logic to detect and handle repeated key presses in the ShowQPasteWnd function. Add a new method HandleRepeatedKeyPresses to the CQuickPaste class.

Add functionality to handle repeated key presses for global hot keys without releasing the CTRL key.

* **src/HotKeys.cpp**: Add logic to detect and handle repeated key presses in the `CHotKey::Register`, `CHotKey::Unregister`, and `CHotKey::ValidateHotKey` methods. Add a new method `HandleRepeatedKeyPresses` to the `CHotKey` class. Add a new member variable `m_lastKeyPressTime` to the `CHotKey` class.
* **src/HotKeys.h**: Add a new method `HandleRepeatedKeyPresses` to the `CHotKey` class. Add a new member variable `m_lastKeyPressTime` to the `CHotKey` class.
* **src/MainFrm.cpp**: Modify the `OnHotKey` function to handle repeated key presses without releasing the CTRL key. Add logic to detect and handle repeated key presses in the `OnHotKey` function. Add a new member variable `m_lastKeyPressTime` to the `CMainFrame` class. Add a new method `HandleRepeatedKeyPresses` to the `CMainFrame` class.
* **src/MainFrm.h**: Add a new member variable `m_lastKeyPressTime` to the `CMainFrame` class. Add a new method `HandleRepeatedKeyPresses` to the `CMainFrame` class.
* **src/QuickPaste.cpp**: Modify the `ShowQPasteWnd` function to handle repeated key presses without releasing the CTRL key. Add logic to detect and handle repeated key presses in the `ShowQPasteWnd` function. Add a new method `HandleRepeatedKeyPresses` to the `CQuickPaste` class.
@sabrogden sabrogden merged commit 44bb456 into sabrogden:master Mar 19, 2025
@sabrogden
Copy link
Copy Markdown
Owner

What is this fixing, there is no code doing anything in HandleRepeatedKeyPresses

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.

2 participants