Skip to content
This repository has been archived by the owner on Mar 27, 2021. It is now read-only.

Commit

Permalink
Updated InputManager. Fixed some issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
Physiix committed Aug 25, 2018
1 parent 1843cfc commit 1c9d0d4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/core/InputManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ class InputManager {
*/
Initialize(context) {
window.addEventListener('keypress', (event) => {
if (event.key === 'f') {
if (event.code === 'KeyF') {
if (event.ctrlKey)
context.$store.commit('ToggleSearch');
} else if (event.key === 'd') {
} else if (event.code === 'KeyD') {
if (event.ctrlKey)
context.$store.commit('ToggleShowHelper');
} else if (event.key === 'l') {
} else if (event.code === 'KeyL') {
if (event.ctrlKey)
context.$store.commit('ToggleMilestonesList');
} else if (event.key === 'n') {
} else if (event.code === 'KeyN') {
if (event.ctrlKey)
context.$store.commit('CreateNoteDialog');
}
Expand Down
4 changes: 2 additions & 2 deletions src/renderer/components/Helper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<v-dialog v-model="dialog" width="600" persistent>
<v-card>
<v-card-title class="headline justify-center" dark primary-title>
{{this.lang.Get('helperTitle')}}
{{this.$lang.Get('helperTitle')}}
</v-card-title>

<v-card-text class="text-xs-left">
Expand All @@ -15,7 +15,7 @@
<v-card-actions>
<v-spacer></v-spacer>
<v-btn color="primary" flat @click="Close">
{{this.lang.Get('close')}}
{{this.$lang.Get('close')}}
</v-btn>
</v-card-actions>
</v-card>
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/components/SearchBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div ref=container>
<v-card ref=card width="500" class="elevation-24" dark @keyup.esc.native="Close" @keyup.enter.native="Close">
<v-card-title class="py-0">
<v-text-field v-model="search" autofocus :placeholder="this.lang.Get('searchLabel')"></v-text-field>
<v-text-field v-model="search" autofocus :placeholder="this.$lang.Get('searchLabel')"></v-text-field>
</v-card-title>
</v-card>
</div>
Expand Down

0 comments on commit 1c9d0d4

Please sign in to comment.