From 015a368a1df9545f545b2381ed4feff6ac62cc3b Mon Sep 17 00:00:00 2001 From: J-Jamet Date: Mon, 25 Jun 2018 17:00:57 +0200 Subject: [PATCH] Add keyboard explanation --- ...java => FingerPrintExplanationDialog.java} | 24 +- .../keyboard/KeyboardExplanationDialog.java | 77 ++++++ .../keepass/password/PasswordActivity.java | 4 +- .../settings/NestedSettingsFragment.java | 17 +- .../drawable/capture_keyboard_entry_key.png | Bin 0 -> 1001 bytes .../drawable/capture_keyboard_fields_keys.png | Bin 0 -> 2447 bytes .../drawable/capture_keyboard_lock_key.png | Bin 0 -> 1029 bytes .../drawable/capture_keyboard_switch_key.png | Bin 0 -> 801 bytes .../capture_keyboard_switcher_logo.png | Bin 0 -> 2132 bytes ..._assword.png => capture_type_password.png} | Bin ...dialog.xml => fingerprint_explanation.xml} | 2 +- .../main/res/layout/keyboard_explanation.xml | 225 ++++++++++++++++++ app/src/main/res/values/donottranslate.xml | 6 +- app/src/main/res/values/strings.xml | 14 +- .../main/res/xml/form_filling_preferences.xml | 20 +- magikeyboard/src/main/AndroidManifest.xml | 3 +- magikeyboard/src/main/res/values/strings.xml | 2 + 17 files changed, 357 insertions(+), 37 deletions(-) rename app/src/main/java/com/kunzisoft/keepass/fingerprint/{FingerPrintDialog.java => FingerPrintExplanationDialog.java} (70%) create mode 100644 app/src/main/java/com/kunzisoft/keepass/keyboard/KeyboardExplanationDialog.java create mode 100644 app/src/main/res/drawable/capture_keyboard_entry_key.png create mode 100644 app/src/main/res/drawable/capture_keyboard_fields_keys.png create mode 100644 app/src/main/res/drawable/capture_keyboard_lock_key.png create mode 100644 app/src/main/res/drawable/capture_keyboard_switch_key.png create mode 100644 app/src/main/res/drawable/capture_keyboard_switcher_logo.png rename app/src/main/res/drawable/{type_assword.png => capture_type_password.png} (100%) rename app/src/main/res/layout-v23/{fingerprint_dialog.xml => fingerprint_explanation.xml} (98%) create mode 100644 app/src/main/res/layout/keyboard_explanation.xml diff --git a/app/src/main/java/com/kunzisoft/keepass/fingerprint/FingerPrintDialog.java b/app/src/main/java/com/kunzisoft/keepass/fingerprint/FingerPrintExplanationDialog.java similarity index 70% rename from app/src/main/java/com/kunzisoft/keepass/fingerprint/FingerPrintDialog.java rename to app/src/main/java/com/kunzisoft/keepass/fingerprint/FingerPrintExplanationDialog.java index be2813fc6..f7114b623 100644 --- a/app/src/main/java/com/kunzisoft/keepass/fingerprint/FingerPrintDialog.java +++ b/app/src/main/java/com/kunzisoft/keepass/fingerprint/FingerPrintExplanationDialog.java @@ -20,7 +20,6 @@ package com.kunzisoft.keepass.fingerprint; import android.app.Dialog; -import android.content.DialogInterface; import android.content.Intent; import android.os.Build; import android.os.Bundle; @@ -30,41 +29,34 @@ import android.support.v4.app.DialogFragment; import android.support.v7.app.AlertDialog; import android.view.LayoutInflater; import android.view.View; -import android.widget.ImageView; import com.kunzisoft.keepass.R; @RequiresApi(api = Build.VERSION_CODES.M) -public class FingerPrintDialog extends DialogFragment { +public class FingerPrintExplanationDialog extends DialogFragment { private FingerPrintAnimatedVector fingerPrintAnimatedVector; @NonNull @Override public Dialog onCreateDialog(Bundle savedInstanceState) { + assert getActivity() != null; AlertDialog.Builder builder = new AlertDialog.Builder(getActivity()); LayoutInflater inflater = getActivity().getLayoutInflater(); - View rootView = inflater.inflate(R.layout.fingerprint_dialog, null); + View rootView = inflater.inflate(R.layout.fingerprint_explanation, null); View fingerprintSettingWayTextView = rootView.findViewById(R.id.fingerprint_setting_way_text); - fingerprintSettingWayTextView.setOnClickListener(new View.OnClickListener() { - @Override - public void onClick(View view) { - startActivity(new Intent(android.provider.Settings.ACTION_SECURITY_SETTINGS)); - } - }); + fingerprintSettingWayTextView.setOnClickListener( + view -> startActivity(new Intent(android.provider.Settings.ACTION_SECURITY_SETTINGS))); fingerPrintAnimatedVector = - new FingerPrintAnimatedVector(getContext(), - (ImageView) rootView.findViewById(R.id.fingerprint_image)); + new FingerPrintAnimatedVector(getActivity(), + rootView.findViewById(R.id.fingerprint_image)); builder.setView(rootView) - .setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() { - @Override - public void onClick(DialogInterface dialog, int id) { + .setPositiveButton(android.R.string.ok, (dialog, id) -> { - } }); return builder.create(); } diff --git a/app/src/main/java/com/kunzisoft/keepass/keyboard/KeyboardExplanationDialog.java b/app/src/main/java/com/kunzisoft/keepass/keyboard/KeyboardExplanationDialog.java new file mode 100644 index 000000000..2f2008be6 --- /dev/null +++ b/app/src/main/java/com/kunzisoft/keepass/keyboard/KeyboardExplanationDialog.java @@ -0,0 +1,77 @@ +/* + * Copyright 2017 Brian Pellin, Jeremy Jamet / Kunzisoft. + * + * This file is part of KeePass DX. + * + * KeePass DX is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * KeePass DX is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with KeePass DX. If not, see . + * + */ +package com.kunzisoft.keepass.keyboard; + +import android.app.Dialog; +import android.content.Intent; +import android.os.Bundle; +import android.provider.Settings; +import android.support.annotation.NonNull; +import android.support.v4.app.DialogFragment; +import android.support.v7.app.AlertDialog; +import android.view.LayoutInflater; +import android.view.View; +import android.view.inputmethod.InputMethodManager; + +import com.kunzisoft.keepass.BuildConfig; +import com.kunzisoft.keepass.R; +import com.kunzisoft.keepass.utils.Util; + +import static android.content.Context.INPUT_METHOD_SERVICE; +import static android.content.Intent.FLAG_ACTIVITY_NEW_TASK; + +public class KeyboardExplanationDialog extends DialogFragment { + + @NonNull + @Override + public Dialog onCreateDialog(Bundle savedInstanceState) { + assert getActivity() != null; + AlertDialog.Builder builder = new AlertDialog.Builder(getActivity()); + LayoutInflater inflater = getActivity().getLayoutInflater(); + + View rootView = inflater.inflate(R.layout.keyboard_explanation, null); + + View fingerprintSettingPath1TextView = rootView.findViewById(R.id.keyboards_activate_setting_path1_text); + fingerprintSettingPath1TextView.setOnClickListener( + view -> launchActivateKeyboardSetting()); + View fingerprintSettingPath2TextView = rootView.findViewById(R.id.keyboards_activate_setting_path2_text); + fingerprintSettingPath2TextView.setOnClickListener( + view -> launchActivateKeyboardSetting()); + + View containerKeyboardSwitcher = rootView.findViewById(R.id.container_keyboard_switcher); + if(BuildConfig.CLOSED_STORE) { + containerKeyboardSwitcher.setOnClickListener( + view -> Util.gotoUrl(getContext(), R.string.keyboard_switcher_play_store)); + } else { + containerKeyboardSwitcher.setOnClickListener( + view -> Util.gotoUrl(getContext(), R.string.keyboard_switcher_f_droid)); + } + + builder.setView(rootView) + .setPositiveButton(android.R.string.ok, (dialog, id) -> {}); + return builder.create(); + } + + private void launchActivateKeyboardSetting() { + Intent intent = new Intent(Settings.ACTION_INPUT_METHOD_SETTINGS); + intent.addFlags(FLAG_ACTIVITY_NEW_TASK); + startActivity(intent); + } +} diff --git a/app/src/main/java/com/kunzisoft/keepass/password/PasswordActivity.java b/app/src/main/java/com/kunzisoft/keepass/password/PasswordActivity.java index a95a5707c..8fd5fe29a 100644 --- a/app/src/main/java/com/kunzisoft/keepass/password/PasswordActivity.java +++ b/app/src/main/java/com/kunzisoft/keepass/password/PasswordActivity.java @@ -67,7 +67,7 @@ import com.kunzisoft.keepass.database.action.OnFinishRunnable; import com.kunzisoft.keepass.dialogs.PasswordEncodingDialogHelper; import com.kunzisoft.keepass.fileselect.KeyFileHelper; import com.kunzisoft.keepass.fingerprint.FingerPrintAnimatedVector; -import com.kunzisoft.keepass.fingerprint.FingerPrintDialog; +import com.kunzisoft.keepass.fingerprint.FingerPrintExplanationDialog; import com.kunzisoft.keepass.fingerprint.FingerPrintHelper; import com.kunzisoft.keepass.settings.PreferencesUtil; import com.kunzisoft.keepass.stylish.StylishActivity; @@ -710,7 +710,7 @@ public class PasswordActivity extends StylishActivity else { // show explanations fingerprintContainerView.setOnClickListener(view -> { - FingerPrintDialog fingerPrintDialog = new FingerPrintDialog(); + FingerPrintExplanationDialog fingerPrintDialog = new FingerPrintExplanationDialog(); fingerPrintDialog.show(getSupportFragmentManager(), "fingerprintDialog"); }); setFingerPrintVisibility(View.VISIBLE); diff --git a/app/src/main/java/com/kunzisoft/keepass/settings/NestedSettingsFragment.java b/app/src/main/java/com/kunzisoft/keepass/settings/NestedSettingsFragment.java index e8fbd0f4c..4b6cb5762 100644 --- a/app/src/main/java/com/kunzisoft/keepass/settings/NestedSettingsFragment.java +++ b/app/src/main/java/com/kunzisoft/keepass/settings/NestedSettingsFragment.java @@ -52,6 +52,7 @@ import com.kunzisoft.keepass.dialogs.UnavailableFeatureDialogFragment; import com.kunzisoft.keepass.dialogs.UnderDevelopmentFeatureDialogFragment; import com.kunzisoft.keepass.fingerprint.FingerPrintHelper; import com.kunzisoft.keepass.icons.IconPackChooser; +import com.kunzisoft.keepass.keyboard.KeyboardExplanationDialog; import com.kunzisoft.keepass.settings.preferenceDialogFragment.DatabaseEncryptionAlgorithmPreferenceDialogFragmentCompat; import com.kunzisoft.keepass.settings.preferenceDialogFragment.DatabaseDescriptionPreferenceDialogFragmentCompat; import com.kunzisoft.keepass.settings.preferenceDialogFragment.DatabaseKeyDerivationPreferenceDialogFragmentCompat; @@ -280,17 +281,21 @@ public class NestedSettingsFragment extends PreferenceFragmentCompat }); } - // TODO define the checkbox by verifying - SwitchPreference keyboardPreference = (SwitchPreference) findPreference(getString(R.string.magic_keyboard_key)); + Preference keyboardPreference = findPreference(getString(R.string.magic_keyboard_key)); keyboardPreference.setOnPreferenceClickListener(preference -> { - if (getContext() != null) { - InputMethodManager imeManager = (InputMethodManager) getContext().getSystemService(INPUT_METHOD_SERVICE); - if (imeManager != null) - imeManager.showInputMethodPicker(); + if (getFragmentManager() != null) { + KeyboardExplanationDialog fingerPrintDialog = new KeyboardExplanationDialog(); + fingerPrintDialog.show(getFragmentManager(), "keyboardExplanationDialog"); } return false; }); + Preference keyboardSubPreference = findPreference(getString(R.string.magic_keyboard_preference_key)); + keyboardSubPreference.setOnPreferenceClickListener(preference -> { + // TODO Open magikeyboard preference + return false; + }); + break; case DATABASE: diff --git a/app/src/main/res/drawable/capture_keyboard_entry_key.png b/app/src/main/res/drawable/capture_keyboard_entry_key.png new file mode 100644 index 0000000000000000000000000000000000000000..95f020e8436be4887b5f9c56dc20d6cb4323546d GIT binary patch literal 1001 zcmVu!MGD8l)uNv~Uxm$>v>U zw<_MXceG#c>Ebn;bL9-)^=^JYSKHx?jpws-&hwn}a@d6{9s*`ULI|J)KnaupD1j0H zB_|E*;U>lymt}|DZn0PpAcM$cGKpkTjmL!$M<}UqI25i(5<}Ds#bU9@m6a8aikKSv zkx2YeNrl64%IPE`Ap|jE3}TEzXo83&iRl5)wjyQER|;2%NRVI>gAYSt5@Qk*B#21i zN_Mn=E8(&%NlXX<8O0OBm=Hpe7?8H|W*HVf(! zl!^dKpaeh(lmIA!5&$ItN}vQl36ub%u$IKHR5)%y?e%;BH@UPq%I&hwm}fKQ}-9Vz#s;2qL1L-Cg~i<@DKe`m4Qz zEt4tn4G-P9-Mx3bb_j>v-gv3L+U5EXTr2g#p~mASpu{&kbn|-qk=^QQ+)hPV`}nCm zl$dvUZ)~V9#D`Art**v~dSqM%FCq8(4DFAM>v&Y3aUK5Gf7$#tF*y~EM6Y>01NZxD z-RE;gRbc5&;a@R5Gy81jC6p9Oo!gz$vbDW4_|T`Pyn$dS9Etj$KUFwKsaPx}HMvRx z!BBPy5>wT{Y6#W4$x5m+t=>(lkrryeGYN4}iKfqVTq$*~y|t%DmX=3PsU8#r@j zv}Lutha=I&<&^?E`(H1FBT*+kQlt2miXC;|ThJIb$1&W3q@KidTM@b@?B*IQ`(P2bHsZ=VD5;Y#zG>s8E zd;ugdY>W^irfJ&#WAg`;2qE<2pgk+_Vz7+;zkW1qlJt)OBWEn8 zX z0|WxeoJHE61A!#o0nbigNnmbDjz41Yg^-%urXsUP zd&&0V6hJdPYkT_q)i(kj%0YEjz2l3&15(fLLZ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ggJdEMS@uXBaTALRHmj4~Jbz*svp~ z9?acyrYI!01K3B)e+fI;8Be2DP6ZG28~WBZpDBE`R%ic@drsfTI*7+F%mV|mXU{K? zk2`Ch+PU~vkC3z$BMBz&<^K*|M3;8VZZfFdnBX##3c-jℜ5ZhT`!!+y*f=)*N@o z>OKni$}E$CUQd|VajS%c^}fkMssG6Ee>q>@@+FQShp}(OOV$HFQ=qd5N83uc&yBwT Dq9CdN literal 0 HcmV?d00001 diff --git a/app/src/main/res/drawable/capture_keyboard_lock_key.png b/app/src/main/res/drawable/capture_keyboard_lock_key.png new file mode 100644 index 0000000000000000000000000000000000000000..f0a530e8cd79d48246a1a86a1725b2b5cbffd040 GIT binary patch literal 1029 zcmV+g1p51lP)OK*Cm3iAjmlv1VTkI4+wKb1pt7~A!L}zXvzaZ$q~BW4yum;fXQS; z9f5)hK_CbOvCFfDX2vLOb{=!s?EtVE2z>E4ge6|*w~*PF*JCi#d#b6{DENK?IE|v zyR^Krw7fDqH}Cd%TbrEKRaI8TYO1Sd=jOHC5t?QVMya~&!*}nkhr;Qj>!I+-*tpW} z?&`Ess@wFb>;=UmvM4C#4+PyFuhMSb`dEh`91V7*p~Qu}rVgne>se6w1Hl4@P+1}f zEh`in=!n7o-jnSoRPC@MTMLEUGu{_(-j%$L80_!8bn$|fu>!?7V=Ya`36KTfVrlCL zRXFU%&UKwG`53|WLKhY0Rv0W11cE5l!c6)>OGyW=jy9(4DeC}%@CSkecZQX^1A9Ur zjXr3!*O#MfjEs$|)t87QO}=_trZFPxe5Fk#<{*M-$*efI+S|$$#6Vw<8Xy^^SFcYnDlMAc7wf_uZyL=_w5q+09j`77K0^b4FrK85CnoK1Vk#8 zf~}_=`cIuQ2Y^H}nFmBH9xo#uK>z>}i9{X{QZy>dG69nN@JoMEiU5&iS(TL;AUNmB z0cn#3*CzsXnIn>vzT_DdD&?^kqf`(CRfOu!Cx|S|5lPzam7l^Q7LQX=G?`2$qfuuR z63JvDk@&B7pXok=Isye1f>u7+-!6Pr9HH$dki-?3xX|@% zm(c|K1q)?o**6Gw?q}%aRXcKlFXXNK0S2KYu0^R?Q_EZo7A?yAp(CVj#}=%+a8DJ-$M~=YWaNVJH$;d9%gU<MX!wT=o#93ID|8U&_r z@Vw?w`m~ha!FjU6;uwYr3PMX3GXA(E|F2fj)}P~2)aT^7&t(ie8LGBM0J zU8Ev&Tk?X+>xn0W)z0cL^d*1Z*S5U|?kpff#;3UG#>~EV-j?>|zdwEX65;lH*Z%)? zpOY7ayvtk{yZ6(ZlaD9qAGdh+-NClv$BWC)^?&-UcovkrM~}g4Uyhz>QGE8Q;?0&) z(@uYQa&gVN+>q?AS!?(0+Qz7m8J_*sxb)+rv%hC`^3U2|&41#_tvz3#g@&>23p<|@ z!^?1=kMCUa>FLM(s`Gd6<$jR%^q9}mIoJB09&No`9=qahfz<7{cc*SGWjK2jB(Y`k zfBRbT>r%$&0y58poI3qod=gv3lGrPiFl0c9(9Sbgt83<-?zek3Z-x z(_bo}^z+sRpG6jZ%uC(&-0&^2y1VX+&GAB++h)gAUwvJq@$0g6K0{_&;fH;2+tsFj a6!y!Ky)yBq^I>4}X7F_Nb6Mw<&;$Te{&`FQ literal 0 HcmV?d00001 diff --git a/app/src/main/res/drawable/capture_keyboard_switcher_logo.png b/app/src/main/res/drawable/capture_keyboard_switcher_logo.png new file mode 100644 index 0000000000000000000000000000000000000000..ba0cd6af96c6eae8c735235198ba577c3d6d102f GIT binary patch literal 2132 zcmV-a2&?yrP)VK6oe(<^NlxRl&%}NP6E_ zzW$8kb_@raTJ#@r95p&G&_!4K<~qJ66d`U#!E35tFF|LO#q#K}ciuXG=+GgrZ33_E zf8z-!*ZD@Z=6}}nya7cK1yw}}?jjQW){u)T!M{K+M0LZ9gwL4j!5t+kRJ%+RR1n9> zXHw3QlvDfOn?HEvdL!0!0)EHKq+a(c-b;3m3LrKLO?cH3O&T6CWST1{i|_ku7Paq&T2H@9$O?bzxsqTwL6co|si3)f$5L^aKvuNEdNkoEjRe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P{yb!b?QBo#gj7<#q zD5(7H+Apcp=09!%Z8&2E-?z*KxHWx|gV)}q-g4CJ1){Ve0`IFwrMA%2?mZI-`iW;D zagQue9Ph@>mO*?(V5VB+%-CNIk|@Wo3oA?bdf$Vo+g&U2rY+V$!YtT_2SH@x&Xva* zJGYjaUp4#oU^eP^SQ4^WHp*%WH`7hFyS+rNC4su5P_t#Sdlx`(vt76y+4um=02lMB zL?>HzCczz`J9elM?nM~3r5%5dXQ%53@1}qJL4d@3m>T|`ZBQ$(of`l&~0FEy=I(z#c zOS_p>PAZ+P8~z7uCe_MfaXLS7;_{gzKPue5d7TD>ZiOZb9h-JMyZh5UJ^jP?9pw@- zJ3BRc>C~B%uy_+FH=6^Blu|y8gBk5D}LwP9oF8>8u5 + android:src="@drawable/capture_type_password"/> diff --git a/app/src/main/res/layout/keyboard_explanation.xml b/app/src/main/res/layout/keyboard_explanation.xml new file mode 100644 index 000000000..b14dfac2a --- /dev/null +++ b/app/src/main/res/layout/keyboard_explanation.xml @@ -0,0 +1,225 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/values/donottranslate.xml b/app/src/main/res/values/donottranslate.xml index 31a0ef50a..b43ac104a 100644 --- a/app/src/main/res/values/donottranslate.xml +++ b/app/src/main/res/values/donottranslate.xml @@ -20,6 +20,7 @@ KeePass DX + https://play.google.com/store/apps/details?id=com.kunzisoft.keepass.pro http://code.google.com/p/android/issues/detail?id=35732 https://www.kunzisoft.com/donation?project=keepassdx @@ -28,6 +29,9 @@ https://play.google.com/store/apps/details?id=org.openintents.filemanager https://f-droid.org/packages/org.openintents.filemanager/ https://keepass.info/help/base/fieldrefs.html + https://play.google.com/store/apps/details?id=com.kunzisoft.keyboard.switcher + https://f-droid.org/en/packages/com.kunzisoft.keyboard.switcher/ + Keyboard Switcher --,--`--,{@ @@ -93,6 +97,7 @@ education_screen_reclicked_key settings_appearance_key magic_keyboard_key + magic_keyboard_preference_key true true @@ -123,7 +128,6 @@ false false false - false 300000 60000 diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 9aacc2bcd..d11889b38 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -262,9 +262,21 @@ Text appearance Application appearance Other + Keyboard Magikeyboard - Activate a custom keyboard that populates your passwords and all your identity fields easily. + Activate a custom keyboard that populates your passwords and all your identity fields securely. + Magikeyboard preferences + How to configure the keyboard for secure form filling? + Activate the Magikeyboard in the device setting. + Settings -> Language & input -> Current keyboard -> CHOOSE KEYBOARDS + or (Settings -> System -> Language & input -> Virtual keyboard -> Manage keyboards) + Choose the Magikeyboard when you need to fill a form. + You can easily switch from your main keyboard to Magikeyboard with : + Select your entry with the key. + Fill in your fields with the elements of the entry. + Lock the database. + Go back to your main keyboard. Reset education screens Highlight the elements to learn how the application works diff --git a/app/src/main/res/xml/form_filling_preferences.xml b/app/src/main/res/xml/form_filling_preferences.xml index c6cac5418..38f8d8322 100644 --- a/app/src/main/res/xml/form_filling_preferences.xml +++ b/app/src/main/res/xml/form_filling_preferences.xml @@ -27,6 +27,17 @@ android:key="@string/settings_autofill_enable_key"/> + + + + + - - - - \ No newline at end of file diff --git a/magikeyboard/src/main/AndroidManifest.xml b/magikeyboard/src/main/AndroidManifest.xml index 5fd42f460..43cfe6527 100644 --- a/magikeyboard/src/main/AndroidManifest.xml +++ b/magikeyboard/src/main/AndroidManifest.xml @@ -3,6 +3,7 @@ @@ -11,7 +12,7 @@ + android:label="@string/keyboard_setting_label"> diff --git a/magikeyboard/src/main/res/values/strings.xml b/magikeyboard/src/main/res/values/strings.xml index e17888795..4936eb1f0 100644 --- a/magikeyboard/src/main/res/values/strings.xml +++ b/magikeyboard/src/main/res/values/strings.xml @@ -18,4 +18,6 @@ --> Magikeyboard + Magikeyboard (KeePass DX) + Magikeyboard settings