Skip to content

Commit

Permalink
feat: Update version to 1.0.1 in manifest.json and package.json
Browse files Browse the repository at this point in the history
refactor: Prevent form submission when Enter key is pressed in PasswordModal.ts
  • Loading branch information
rcmdnk committed Feb 15, 2024
1 parent 504045d commit d76f5da
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifest.json
@@ -1,7 +1,7 @@
{
"id": "evernote-decryptor",
"name": "Evernote Decryptor",
"version": "1.0.0",
"version": "1.0.1",
"minAppVersion": "1.0.0",
"description": "Obsidian Plugin for encrypted data imported from Evernote.",
"author": "rcmdnk",
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "obsidian-sample-plugin",
"version": "1.0.0",
"version": "1.0.1",
"description": "This is a sample plugin for Obsidian (https://obsidian.md)",
"main": "main.js",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions src/PasswordModal.ts
Expand Up @@ -20,6 +20,7 @@ export class PasswordModal extends Modal {
this.passwordField.type = 'password';
this.passwordField.addEventListener('keypress', (e: KeyboardEvent) => {
if (e.key === 'Enter') {
e.preventDefault();
this.onPasswordSubmit();
}
});
Expand Down

0 comments on commit d76f5da

Please sign in to comment.