Skip to content

Commit 6c4cc3c

Browse files
committed
use keydown for correct deletion
1 parent 8a458ed commit 6c4cc3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web_src/js/features/repo-editor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export function initRepoEditor() {
127127
joinTreePath($(this));
128128
});
129129

130-
$editFilename.on('keyup', function (e) {
130+
$editFilename.on('keydown', function (e) {
131131
const $section = $('.breadcrumb span.section');
132132

133133
if (e.keyCode === 8 && getCursorPosition($(this)) === 0 && $section.length > 0) {

0 commit comments

Comments
 (0)