Reduce the sleep time of the send_pending_key thread to 1ms draft

Clean several compilation warnings draft

Fix SHIFT and code cleanup draft

(0) -30 -10 -3 +3 tip

mercurial