Skip to content

Commit

Permalink
Fix not recognizing shifted keystrokes
Browse files Browse the repository at this point in the history
  • Loading branch information
pjeby committed Jul 29, 2021
1 parent 003f89a commit 5e5be34
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "quick-explorer",
"name": "Quick Explorer",
"version": "0.0.4",
"version": "0.0.5",
"description": "Perform file explorer operations (and see your current file path) from the title bar",
"minAppVersion": "0.12.10",
"isDesktopOnly": true
Expand Down
3 changes: 2 additions & 1 deletion src/menus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ export class PopupMenu extends Menu {
}

onKeyDown(event: KeyboardEvent) {
if (event.key.length === 1 && !Keymap.getModifiers(event)) {
const mod = Keymap.getModifiers(event);
if (event.key.length === 1 && !event.isComposing && (!mod || mod === "Shift") ) {
let match = this.match + event.key;
// Throw away pieces of the match until something matches or nothing's left
while (match && !this.searchFor(match)) match = match.substr(1);
Expand Down
2 changes: 1 addition & 1 deletion versions.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"0.0.4": "0.12.10",
"0.0.5": "0.12.10",
"0.0.1": "0.12.3"
}

0 comments on commit 5e5be34

Please sign in to comment.