Skip to content

Timetable Editor: clicking away from a cell reverts to previous value #562

@landonreed

Description

@landonreed

While editing trips in the timetable editor, clicking away from a cell you are editing will cause the cell to revert to the previous value, rather than keep the edited value. A user must press Enter to keep the edited value, but this is not intuitive to a large number of users. We should add this.save() to occur when the cell is unfocused (the this.save() call on Enter keypress is visible in the code snippet below):

case 13: // Enter
evt.preventDefault()
if (isFocused) {
this.beginEditing()
}
// handle shift
if (evt.shiftKey) {
this.save()
offsetScrollRow(-1)
} else {
this.save()
}

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions