How to change shift key (pan in viewport) to any other key?

Holding only middle mouse button will rotate the view in viewport.

Shift + middle mouse button will pan instead.

Is there a way to change the shift key to any other?
(for example: if a change the shift key to letter “h”, then I will do hold “h” + middle mouse button instead)

I made an Autohotkey script " f10:: suspend rbutton::shift return " so that when I “hold right mouse button + middle mouse button” I can pan in viewport but unfortunately if I want to disable the ahk, I will get a BUG that rebooting is the only fix.

I’m pretty sure you can set hotkeys under User Preferences.

Try this:

(I don’t know if it is helpful :sweat_smile: but I tried)