Skip to content

Commit

Permalink
Added in Ctrl+U option for view-source (#355)
Browse files Browse the repository at this point in the history
* Added in Ctrl+U option for view-source

* Fix
  • Loading branch information
Yash-Singh1 authored Dec 28, 2020
1 parent 4a082a5 commit 540882e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions interfacer/src/browsh/tty.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 540882e

Please sign in to comment.