Keyboard Capture and Inbox Bubble Resetting for Soft Refresh

(Sue me, I like title case =3)

I tried to stick with the coding style I found in the file. As for the need for preferences, I'm not sure for what reason one would want to disable the bubble resetting, but I thought it better to leave the option.