https://github.com/davidlatwe/mousetrap
Trap your mouse in blender text input area.
https://github.com/davidlatwe/mousetrap
blender-addon blender-scripts
Last synced: 3 months ago
JSON representation
Trap your mouse in blender text input area.
- Host: GitHub
- URL: https://github.com/davidlatwe/mousetrap
- Owner: davidlatwe
- License: mit
- Created: 2023-12-09T20:46:37.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-10T14:15:58.000Z (over 1 year ago)
- Last Synced: 2025-03-06T06:37:56.235Z (4 months ago)
- Topics: blender-addon, blender-scripts
- Language: Python
- Homepage:
- Size: 18.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
mousetrap
Trap your mouse in blender text input area, stay focused.
### Why?
Blender's text editor and console lose keyboard input focus when mouse cursor is not hovering on those areas. While
other graphical interface like search bar or name input field does hold. It's unfair!### Usage
1. Once installed, a mouse-move icon button should appear at right side of console and text editor header.
2. Keymap `Ctrl` + `Shift` + `` ` `` is added for fast activation, or you can just toggle that button.
3. Once activated, your mouse is trapped inside that panel with your keyboard input focus.
4. You can right click to temporary leave the trapping area and move somewhere else, and left click on trapping area to
regain focus.
5. Press `Esc` to deactivate completely.### Bonus
* When mousetrap is on, press `Home` key moves cursor to the first character in line, instead of line start.
* `Ctrl` + `Up`/`Down` to scroll with cursor (Disabled due to this can cause Blender to crash if the focus was shifted
to other application and back.)