The bug seems to occur after I rebind the keyboard as mentioned in the
Experimental Keyboard Layout/Rebinding topic, making my 'P' key as my new Keyboard Mode button. The bug occurs even after changing the value of "exposeKeybinds" in Cogmind.cfg to 0. You might want to check to see if the bug is related to the rebinding or not.
Here's how I produce the bug:
1) I toggled on the Keyboard Mode (whether it's through the Option menu or through the 'P' key)
2) Inspected a wall tile
3) Toggled Keyboard Mode back off
4) Used my mouse to right-click to inspect an item (whether it's on the ground, in inventory, or in equipment)
5) Closed the item data window via Esc key
The outcome is that my mouse pointer immediately jumped to the center of the screen. The problem persists whenever I inspect an item and closing the window. If I simply toggle on and off the Keyboard Mode without inspecting a terrain tile, the mouse will not jump after inspecting an item. If I inspect the Cogmind itself, the mouse also will not jump. The bug ends after closing the game and reopening it.
I've attached some files in case you need it.