-
-
Notifications
You must be signed in to change notification settings - Fork 268
copy TOTP and MacOS global hotkey support #262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Nice, thanks 👍️ although this looks like it is already doing something very similar: https://pub.dev/packages/global_shortcuts - maybe we could reuse this, if it doesn't do anything weird 🤔️ |
|
Here is another plugin which seems to even work on windows: https://pub.dev/packages/hotkey_manager |
|
tried https://pub.dev/packages/hotkey_manager but something completely hosed my project, now i can no longer build (getting weird signing errors). So it might take a while to materialize. |
|
I think the problem is related to leanflutter/hotkey_manager#1 |
|
hotkey_manager: 0.0.4 did the trick, @hpoul here is now the multiplatform version |
07cc25c to
8b2dcd3
Compare
|
@hpoul I am a bit new to flutter, so I cant figure out why the integration test is failing. I added a catch to the registration of the hotkey (https://github.com/authpass/authpass/pull/262/files#diff-e134bef29121dced32f37fe56c1dcacbe97c298d81c4db00f57f1e13144f05beR103) but somehow this does not seem to work or the int test. I tested the actual build on the ios simulator and there it looked like the exception was properly caught. |
|
@rburgst no worries, i think the exception is not catched, because you don't So you could probably "fix" this by adding an (btw. any idea if the plugin is supported on linux? it seems there is linux code which does something but the |
|
I am the author of hotkey_manager, it will support linux platform soon. |
Ah, that makes sense, the problem is that |
8b2dcd3 to
37a3e25
Compare
I am not sure I want to always keep track of which platforms |
It's not like this will change on a weekly basis 😂 |
bf3272b to
40f8417
Compare
Codecov Report
@@ Coverage Diff @@
## master #262 +/- ##
=========================================
- Coverage 2.95% 2.93% -0.03%
=========================================
Files 102 102
Lines 9499 9566 +67
=========================================
Hits 281 281
- Misses 9218 9285 +67
Continue to review full report at Codecov.
|
|
@rburgst thanks, looks good 👍
Also - what was the thought behind using ctrl+alt+n as shortcut for search? since the app internal shortcut is ctrl+f wouldnt it make more sense to use ctrl+alt+f? 🤔️ (btw. in the future it would be easier if you could create separate PRs for each feature, it would make discussions a bit easier 😅️) |
Actually the keyboard shortcut should be configurable, but I dont have enough knowledge and practice with Flutter to efficiently do this. |
|
@rburgst Please upgrade |
done |
Sorry about that, I was on a roll. Will do that next time. |
|
@rburgst my only concern is the keyboard shortcut ctrl+alt+n - for me this would make more sense for creating a new password entry :-) i think i'll change it to ctrl+alt+f, if you don't have a better idea? 🤔️ yes, earlier or later this should be configurable.. but until then it should be a sensible default.. the whole keyboard shortcut implementation is just a workaround right now, honestly.. authpass/authpass/lib/ui/widgets/keyboard_handler.dart Lines 16 to 17 in 9fa3254
😂 I actually hoped that someone would come out with a nice pub package which makes this easier ;-) This should be a pretty generic problem to solve :) |
|
@lijy91 thanks for the update of |
f993149 to
52785b0
Compare
|
@lijy91 are there any external dependencies for linux? the build seems to fail with: |
On linux platform it depends on |
|
@lijy91 thanks.. is this "only" a compile time dependency, or must this also be installed during runtime? I'm now getting the following compile errors https://github.com/authpass/authpass/pull/262/checks?check_run_id=3472093090#step:8:506 |
|
@hpoul I think this may be caused by the build environment, I tried adding I use |
- use `CMD-OPTION-n` to activate AuthPass and invoke search
- which makes it platform agnostic
1dbf033 to
a5340cb
Compare
a5340cb to
b9cea56
Compare
|
@lijy91 thanks! that seems to have done the trick. The linux build uses ubuntu-18.04 - maybe that's the difference. Now I just need a way to find a way to try the runtime 😂️ too many platforms :-) |
|
@rburgst did you test on windows or macos whether the global system wide keys where working correctly? |
|
I did test Mac. That was fine. Didn't check windows. |
|
@hpoul |
|
Great, I've updated |

this PR adds 2 features to AuthPass:
CMD ^ nto bring AuthPass to front and invoke the search function