Skip to content

Commit

Permalink
keypress instead of keydown
Browse files Browse the repository at this point in the history
  • Loading branch information
Mobmaker55 committed Sep 15, 2024
1 parent b9402cb commit 8ad332c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/javascript/modules/majorProjectForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default class MajorProjectForm {
this.form.querySelector('input[id=skill-input]')
.addEventListener('focusout', e => this.onWriteSkill(e));
this.form.querySelector('input[id=skill-input]')
.addEventListener('keyup', e => this.onKeyPress(e));
.addEventListener('keypress', e => this.onKeyPress(e));
}

onKeyPress(e) {
Expand Down
2 changes: 1 addition & 1 deletion frontend/stylesheets/pages/_major-project.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
float: left;
background: #d979e3;
padding: 4px 30px 4px 8px;
margin: 2px 5px;
margin: 2px 3px;
color: #444;
border-radius: 5px;
}
Expand Down

0 comments on commit 8ad332c

Please sign in to comment.