mirror of
https://github.com/abapGit/abapGit.git
synced 2025-04-30 20:03:20 +08:00
Open repo - disable enter if command field is open (#4868)
This commit is contained in:
parent
39512676ca
commit
2cfb2790cf
|
@ -292,8 +292,8 @@ RepoOverViewHelper.prototype.registerKeyboardShortcuts = function() {
|
|||
var selected = document.querySelector(".repo.selected");
|
||||
var indexOfSelected = rows.indexOf(selected);
|
||||
|
||||
if (keycode == 13) {
|
||||
// "enter" to open
|
||||
if (keycode == 13 && // "enter" to open
|
||||
document.activeElement.tagName.toLowerCase() != "input") { // prevent opening if command field has focus
|
||||
self.openSelectedRepo();
|
||||
} else if ((keycode == 52 || keycode == 100) && indexOfSelected > 0) {
|
||||
// "4" for previous
|
||||
|
|
Loading…
Reference in New Issue
Block a user