[BrowserWindow] Create shortcuts with QShortcut instead manually in keypress

This fixes eg. Ctrl+W writing W in locationbar
Fixed building with Qt 4