Felix Geyer
2a416d1f1d
Make sure the remapping keycode is reset to NoSymbol.
...
Previously the dtor of AutoTypePlatformX11 wasn't called.
2013-12-01 23:32:53 +01:00
Felix Geyer
23f338b0c3
Add some error handling in case we can't remap a key.
2013-12-01 19:14:07 +01:00
Felix Geyer
cdcea91b50
Use nanosleep() instead of the deprecated usleep().
2013-12-01 19:09:20 +01:00
Albert Weichselbraun
62ea117f45
Significantly reduce the number of re-mappings required by
...
a) dynamically fetching the modifier masks for Mod1 to Mod5 (Alt, AltGr, Meta,
etc.)
b) integrating commit bfec222 from Felix Geyer <debfx@fobos.de> which creates a
unicode -> x11 keysym mapping table by parsing keysymdefs.h.
This avoids adding new keysyms because keyboard layouts seem to prefer the
lower keysyms over unicode | 0x01000000 mapping.
An example of this is the euro sign with a German keyboard layout.
2013-12-01 15:34:27 +01:00
Albert Weichselbraun
a26119ea20
Use a dedicated keycode for keys that require another modifier than shift.
2013-11-23 09:07:16 +01:00
Albert Weichselbraun
3fcfc348ed
Cleanup: use break rather than nested if/else constructs.
2013-11-18 06:17:56 +01:00
Albert Weichselbraun
6b33298a6e
Merge branch 'bug-116-autotype-new' into bug-116-autotype
2013-11-17 21:10:29 +01:00
Albert Weichselbraun
68e1fc0cd0
Use XKeysymToKeycode together with XkbTranslateKeyCode for translating KeySyms to the corresponding keycode and modifier sequences.
2013-11-17 21:08:55 +01:00
Albert Weichselbraun
d25e883983
Fixed bug #116 - certain characters not working with de keyboard layout
2013-11-17 07:48:25 +01:00
Felix Geyer
6504b6f2bd
Drop Qt module name from include statements.
...
This is a preparation to be able to build KeePassX against Qt 5.
2013-10-03 15:18:16 +02:00
Felix Geyer
e1c82a4453
Print a cmake feature log.
...
This let's users know when the dependnecies for auto-type are missing.
Available only in cmake >= 2.8.3.
Closes #71
2013-06-30 14:07:25 +02:00
Felix Geyer
5550d7af0d
Fix autotype test (build) failures on Mac OS and Windows.
...
We need to tell Windows what symbols the main program exports
and the autotype plugin imports.
On both systems the linker needs the path of the main program that
loads the plugin.
2013-03-29 16:27:02 +01:00
Felix Geyer
095bf158b6
Close AutoTypeSelectDialog when there are no entries left.
...
This happens when the entries were deleted or the database
has been closed.
2013-03-24 14:00:23 +01:00
Felix Geyer
23c787c4dd
Use effectiveWinId() instead of winId() in widgetsToX11Windows().
...
winId() creates native handles as a side effect.
This sometimes triggers a bug that causes DatabaseTabWidget to
not be updated anymore.
2012-11-20 23:52:46 +01:00
Felix Geyer
8b0409b228
Handle KeyRelease events of global shortcuts.
2012-11-20 23:52:46 +01:00
Felix Geyer
54641a2304
Initialize global auto-type key variables.
2012-11-20 23:52:46 +01:00
Florian Geyer
363396037d
Remove redundant resolvePlaceholders call.
2012-11-02 17:48:16 +01:00
Florian Geyer
bd90ba9326
Move initial auto-type timeout to plugins.
2012-11-02 15:49:25 +01:00
Florian Geyer
8347fd36ba
More auto-type tests.
2012-11-02 15:09:54 +01:00
Florian Geyer
ac56ac98f7
Extend auto-type test.
2012-10-28 18:18:24 +01:00
Felix Geyer
606dbc6eb4
Add infrastructure for auto-type tests.
2012-10-28 15:33:44 +01:00
Felix Geyer
40ccd219f4
Allow only selecting one row in AutoTypeSelectView.
2012-09-25 17:51:49 +02:00
Felix Geyer
138ca8d3a3
Select the first entry when the model has been reset.
...
This avoids overriding setEntryList().
2012-08-05 18:51:19 +02:00
Felix Geyer
013a924e43
Activate the auto-type select dialog after showing it.
...
That way it is brought to the front even when the main window is minimized.
2012-08-04 22:06:41 +02:00
Felix Geyer
54433637eb
Disable dragging items from the AutoTypeSelectView.
2012-08-04 22:06:41 +02:00
Felix Geyer
9c378216f6
Coding style fixes.
2012-08-04 22:06:41 +02:00
Felix Geyer
a16f7e7cca
Use WildcardMatcher for simple Auto-Type window patterns.
2012-07-23 18:11:10 +02:00
Felix Geyer
92efb3d20b
Move autoTypeSequence() and windowMatches() to the AutoType class.
2012-07-23 18:06:04 +02:00
Felix Geyer
4f0600421c
Fall back to WM_NAME if _NET_WM_NAME does not exist.
2012-07-23 17:51:21 +02:00
Felix Geyer
ad0d120ae6
Coding style fixes.
2012-07-23 15:11:05 +02:00
Felix Geyer
cf15d1741f
Optimize WildcardMatcher a bit.
2012-07-23 12:33:37 +02:00
Florian Geyer
7bd080760e
Make wildcard matcher case insensitive.
2012-07-22 14:58:15 +02:00
Florian Geyer
4f78c32461
Add custom wildcard matcher.
2012-07-22 14:43:45 +02:00
Felix Geyer
20e4643560
Implement global auto-type dialog.
...
It allows to select an entry when there are multiple entries
that match the window title.
2012-07-21 22:21:49 +02:00
Felix Geyer
c7107de2a7
Improve window select combo box.
...
Create the WindowSelectComboBox subclass that refreshes the window
list whenever the popup is opened.
2012-07-20 12:15:14 +02:00
Felix Geyer
3100c202e8
Install the auto-type plugin.
2012-07-18 21:22:36 +02:00
Felix Geyer
2a45f57386
Support proper plugin finding.
...
So we don't have to hardcode the location anymore.
2012-07-18 21:22:36 +02:00
Felix Geyer
965dba63d7
Use Q_OS_MAC instead of the nonexistent Q_OS_MACOS.
...
Thanks to Richard Johnson for spotting this.
Closes #33
2012-07-16 17:49:12 +02:00
Felix Geyer
676be9da16
Coding style fixes.
2012-07-16 17:47:21 +02:00
Felix Geyer
0b8f07f58e
Don't re-register the global shortcut when the keyboard mapping changes.
...
This breaks after the first global auto-type.
2012-07-16 17:33:23 +02:00
Felix Geyer
85d532953f
Emit globalShortcutTriggered() directly.
...
There is no need for a queued connection call.
2012-07-16 17:29:42 +02:00
Felix Geyer
d3af39a7ae
Reset and unregister global shortcut when it's not locked anymore.
2012-07-14 19:07:13 +02:00
Felix Geyer
fa51f7e10e
Make AutoType::performGlobalAutoType() a slot.
2012-07-14 19:06:05 +02:00
Felix Geyer
bc207714da
Add initial auto-type implementation.
...
The platform dependent bits are separated in plugins.
A plugin for X11 using Xlib is already done.
2012-07-12 22:33:20 +02:00