Skip to content

Commit 8ad332c

Browse files
committed
keypress instead of keydown
1 parent b9402cb commit 8ad332c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

frontend/javascript/modules/majorProjectForm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default class MajorProjectForm {
1717
this.form.querySelector('input[id=skill-input]')
1818
.addEventListener('focusout', e => this.onWriteSkill(e));
1919
this.form.querySelector('input[id=skill-input]')
20-
.addEventListener('keyup', e => this.onKeyPress(e));
20+
.addEventListener('keypress', e => this.onKeyPress(e));
2121
}
2222

2323
onKeyPress(e) {

frontend/stylesheets/pages/_major-project.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
float: left;
3131
background: #d979e3;
3232
padding: 4px 30px 4px 8px;
33-
margin: 2px 5px;
33+
margin: 2px 3px;
3434
color: #444;
3535
border-radius: 5px;
3636
}

0 commit comments

Comments
 (0)