Skip to content

Commit

Permalink
close selected commit sidebar on escape press
Browse files Browse the repository at this point in the history
  • Loading branch information
phil294 committed Apr 30, 2023
1 parent b69d8c5 commit 2b2ebde
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion web/src/views/MainView.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,11 @@ export default




escape_pressed = =>
store.selected_commit.value = null



{
initialized
filtered_commits
Expand Down Expand Up @@ -252,4 +256,5 @@ export default
invisible_branch_tips_of_visible_branches
invisible_branch_tips_of_visible_branches_elems
connection_fake_commit
escape_pressed
}
2 changes: 1 addition & 1 deletion web/src/views/MainView.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template lang="slm">
#main-view.fill.col
#main-view.fill.col @keyup.escape="escape_pressed()"
.row.flex-1
#left.col
p v-if="!initialized"
Expand Down

0 comments on commit 2b2ebde

Please sign in to comment.