Middle-click now enters input mode, and ctrl+middle-click now pastes where
the cursor is. Some redundant definitions were removed, and submodules
were updated.