Added in Ctrl+U option for view-source (#355)

* Added in Ctrl+U option for view-source

* Fix
This commit is contained in:
Yash Singh 2020-12-28 11:56:36 -08:00 committed by GitHub
parent 4a082a5efe
commit 540882ec8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -65,6 +65,10 @@ func handleUserKeyPress(ev *tcell.EventKey) {
urlBarFocusToggle()
case tcell.KeyCtrlT:
createNewEmptyTab()
case tcell.KeyCtrlU:
if !isNewEmptyTabActive() {
sendMessageToWebExtension("/new_tab,view-source:" + CurrentTab.URI)
}
case tcell.KeyCtrlW:
removeTab(CurrentTab.ID)
case tcell.KeyBackspace, tcell.KeyBackspace2: