Skip to content
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

Implement configurable default auto-type delay (fixes #699) #703

Merged
merged 3 commits into from
Jun 29, 2017

Conversation

hifi
Copy link
Member

@hifi hifi commented Jun 28, 2017

Adds both solutions presented in issue #699.

Description

All platform dependant hardcoded auto-type delays were removed in favor of a configurable default. UI was added to configure the delay which defaults to 25ms as specified.

Motivation and context

Issue #699.

How has this been tested?

Only on Linux with three different auto-type entries:

  1. Default, no custom delay (will use the configured default)
  2. Sequence with {DELAY=0} -> will override the default
  3. Sequence with {DELAY=200} -> will override the default

Tested the default at 0 ms, 25 ms and 500 ms. All work and are overridable by the sequence {DELAY=X} option.

Screenshots (if appropriate):

image

Types of changes

  • ✅ Bug fix (non-breaking change which fixes an issue)
  • ✅ New feature (non-breaking change which adds functionality)

Checklist:

  • ✅ I have read the CONTRIBUTING document. [REQUIRED]
  • ✅ My code follows the code style of this project. [REQUIRED]
  • ✅ All new and existing tests passed. [REQUIRED]

</widget>
</item>
<item>
<widget class="QSpinBox" name="autoTypeDelaySpinBox">
Copy link
Member

@phoerious phoerious Jun 28, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use a proper grid layout. One column for the labels (aligned right) and one column for the input widgets.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, the global auto-type shortcut was already hacked together like this so I just continued the tradition. Just to clarify: you want me to wrap both of them in a grid like "Timeouts" is in "Security"?

Copy link
Member

@phoerious phoerious Jun 29, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't have one because it's the only option like that on this tab. But as soon as you have two or more, you need a grid to align them. So yes, please wrap those two options in a grid.

@phoerious phoerious changed the base branch from develop to release/2.2.1 June 29, 2017 01:19
@phoerious
Copy link
Member

After addressing my review change request, please replay your changes on top of release/2.2.1 instead of develop (you can re-use the same branch by force-pushing, so we don't need a new PR).

@phoerious phoerious added this to the v2.2.1 milestone Jun 29, 2017
Additionally this fixes the increased delay when you had your own
custom delay configured and it always added 25ms on top of it.
@hifi hifi force-pushed the autotype-delay-override branch from 121ca17 to 10e78d9 Compare June 29, 2017 13:47
@hifi
Copy link
Member Author

hifi commented Jun 29, 2017

Changed to grid layout and rebased against release/2.2.1.

image

@phoerious
Copy link
Member

phoerious commented Jun 29, 2017

Thanks for your adjustments. Only thing missing: the two labels need to be right-aligned and you may not want to stretch the time field all the way to the right.

@hifi hifi force-pushed the autotype-delay-override branch from 10e78d9 to 933ccce Compare June 29, 2017 17:50
@hifi
Copy link
Member Author

hifi commented Jun 29, 2017

Sorry, my oversight. Fixed now.

image

@hifi hifi force-pushed the autotype-delay-override branch from 933ccce to a032945 Compare June 29, 2017 17:59
@hifi
Copy link
Member Author

hifi commented Jun 29, 2017

image

@phoerious phoerious merged commit e53ac65 into keepassxreboot:release/2.2.1 Jun 29, 2017
@adatum
Copy link

adatum commented Sep 12, 2017

Any chance of another release soon with the many changes committed and merged so far? In particular, this feature of a configurable delay (or no delay, as in versions prior to v2.2.0) has a big impact on usability with long passwords.

@adatum adatum mentioned this pull request Sep 14, 2017
@droidmonkey droidmonkey mentioned this pull request Sep 25, 2017
droidmonkey added a commit that referenced this pull request Oct 1, 2017
- Corrected multiple snap issues [#934, #1011]
- Corrected multiple custom icon issues [#708, #719, #994]
- Corrected multiple Yubikey issues [#880]
- Fixed single instance preventing load on occasion [#997]
- Keep entry history when merging databases [#970]
- Prevent data loss if passwords were mismatched [#1007]
- Fixed crash after merge [#941]
- Added configurable auto-type default delay [#703]
- Unlock database dialog window comes to front [#663]
- Translation and compiling fixes
@phoerious phoerious added pr: new feature Pull request that adds a new feature and removed new feature labels Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: new feature Pull request that adds a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants