Port KeySelectionDialog away from QRegExp
(cherry picked from commit baea4515b1a4c5d71813614a24607bb882609b1c)