-
+
{
+ if (e.key === 'Enter') {
+ submitPassword()
+ }
+ }}
+ className='outline-none w-full text-sm pl-5 rounded-l transition focus:shadow-lg dark:text-gray-300 font-light leading-10 text-black bg-gray-100 dark:bg-gray-500'>
+
{locale.COMMON.SUBMIT}
diff --git a/themes/next/components/ArticleLock.js b/themes/next/components/ArticleLock.js
index 6d2ec730..3843a956 100644
--- a/themes/next/components/ArticleLock.js
+++ b/themes/next/components/ArticleLock.js
@@ -30,6 +30,11 @@ export const ArticleLock = props => {
{
+ if (e.key === 'Enter') {
+ submitPassword()
+ }
+ }}
className="outline-none w-full text-sm pl-5 transition focus:shadow-lg dark:text-gray-300 font-light leading-10 text-black bg-gray-100 dark:bg-gray-500"
>
{
}
return
-
-
{locale.COMMON.ARTICLE_LOCK_TIPS}
-
-
-
-
{locale.COMMON.SUBMIT}
+
+
{locale.COMMON.ARTICLE_LOCK_TIPS}
+
+
{
+ if (e.key === 'Enter') {
+ submitPassword()
+ }
+ }}
+ className='outline-none w-full text-sm pl-5 rounded-l transition font-light leading-10 text-black dark:bg-gray-500 bg-gray-50'
+ >
+
+ {locale.COMMON.SUBMIT}
+
+
+
+
-
-
-
-
}
diff --git a/themes/simple/components/ArticleLock.js b/themes/simple/components/ArticleLock.js
index f21ce74a..de3569b0 100644
--- a/themes/simple/components/ArticleLock.js
+++ b/themes/simple/components/ArticleLock.js
@@ -23,16 +23,23 @@ export const ArticleLock = props => {
}
return
-
-
{locale.COMMON.ARTICLE_LOCK_TIPS}
-
-
-
-
{locale.COMMON.SUBMIT}
+
+
{locale.COMMON.ARTICLE_LOCK_TIPS}
+
+
{
+ if (e.key === 'Enter') {
+ submitPassword()
+ }
+ }}
+ className='outline-none w-full text-sm pl-5 rounded-l transition font-light leading-10 text-black dark:bg-gray-500 bg-gray-50'
+ >
+
+ {locale.COMMON.SUBMIT}
+
+
+
+
-
-
-
-
}