Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Allow space keyword in autotype sequence #267

Merged
merged 2 commits into from
Feb 8, 2017
Merged

Conversation

TheZ3ro
Copy link
Contributor

@TheZ3ro TheZ3ro commented Feb 7, 2017

Description

Fixes #256

Motivation and Context

How Has This Been Tested?

Manually with autotype.

Types of changes

  • ✅ Bug fix (non-breaking change which fixes an issue)

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]
  • ✅ My change requires a change to the documentation and I have updated it accordingly.

@@ -396,6 +396,9 @@ QList<AutoTypeAction*> AutoType::createActionFromTemplate(const QString& tmpl, c
else if (tmplName.compare("enter",Qt::CaseInsensitive)==0) {
list.append(new AutoTypeKey(Qt::Key_Enter));
}
else if (tmplName.compare("space",Qt::CaseInsensitive)==0) {
list.append(new AutoTypeChar(' '));
Copy link
Member

Choose a reason for hiding this comment

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

@TheZ3ro why not use Qt::Key_Space?

Copy link
Contributor Author

@TheZ3ro TheZ3ro Feb 7, 2017

Choose a reason for hiding this comment

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

I've tested the Qt::Key_Space but returned the error No such key: keysym=0x0 (on GNU/Linux)
So I opted for Char(' ') that works fine.

Edit: The Qt::Key_Space isn't handled in XCB https://github.com/keepassxreboot/keepassxc/blob/develop/src/autotype/xcb/AutoTypeXCB.cpp#L431
I will look into this

@TheZ3ro TheZ3ro force-pushed the fix/autotype-space branch from 04f82bd to 2975eb3 Compare February 7, 2017 23:34
@TheZ3ro
Copy link
Contributor Author

TheZ3ro commented Feb 7, 2017

Ok @louib now should work with Qt::Key_Space on all platforms. Someone can test on windows?

@phoerious
Copy link
Member

I tested it on Windows and it works.

@phoerious phoerious added this to the v2.2.0 milestone Feb 8, 2017
@phoerious phoerious merged commit 423de39 into develop Feb 8, 2017
@phoerious phoerious deleted the fix/autotype-space branch February 8, 2017 17:16
droidmonkey added a commit that referenced this pull request Jun 25, 2017
- Added YubiKey 2FA integration for unlocking databases [#127]
- Added TOTP support [#519]
- Added CSV import tool [#146, #490]
- Added KeePassXC CLI tool [#254]
- Added diceware password generator [#373]
- Added support for entry references [#370, #378]
- Added support for Twofish encryption [#167]
- Enabled DEP and ASLR for in-memory protection [#371]
- Enabled single instance mode [#510]
- Enabled portable mode [#645]
- Enabled database lock on screensaver and session lock [#545]
- Redesigned welcome screen with common features and recent databases [#292]
- Multiple updates to search behavior [#168, #213, #374, #471, #603, #654]
- Added auto-type fields {CLEARFIELD}, {SPACE}, {{}, {}} [#267, #427, #480]
- Fixed auto-type errors on Linux [#550]
- Prompt user prior to executing a cmd:// URL [#235]
- Entry attributes can be protected (hidden) [#220]
- Added extended ascii to password generator [#538]
- Added new database icon to toolbar [#289]
- Added context menu entry to empty recycle bin in databases [#520]
- Added "apply" button to entry and group edit windows [#624]
- Added macOS tray icon and enabled minimize on close [#583]
- Fixed issues with unclean shutdowns [#170, #580]
- Changed keyboard shortcut to create new database to CTRL+SHIFT+N [#515]
- Compare window title to entry URLs [#556]
- Implemented inline error messages [#162]
- Ignore group expansion and other minor changes when making database "dirty" [#464]
- Updated license and copyright information on souce files [#632]
- Added contributors list to about dialog [#629]
@phoerious phoerious added pr: new feature Pull request that adds a new feature and removed new feature labels Nov 22, 2024
# for free to join this conversation on GitHub. Already have an account? # 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.

Autotype - allow space key
3 participants