I haven't tested it yet in divinity, but AutoHotkey should do it as a workaround, as long as it isn't implemented by the devs. (Hopefully) It came to my senses because I used it in Dragonage :P