Felix Geyer
147cd4ed7b
Add option to use the entry title for auto-type window matching.
2014-05-15 18:30:57 +02:00
Felix Geyer
b194c29166
Show a dialog when no window matches for auto-type.
2014-04-14 22:57:25 +02:00
Felix Geyer
0b9167c78b
Add an option to always ask before performing auto-type.
...
Closes #120
2014-04-14 22:57:18 +02:00
Felix Geyer
b9370c6e79
More careful null checking and member initalization.
2014-03-22 12:10:49 +01:00
Felix Geyer
809be5f89e
Use the correct modifiers after remapping.
...
Sometimes the keysym is not mapped to the first column (no modifiers)
but to a diffferent column that needs modifiers.
Therefore we need re-read the table and search the whole row for the
correct keysym.
2014-01-19 23:32:00 +01:00
Felix Geyer
bf9a755bea
Check all modifiers before declaring the remap keycode invalid.
...
Sometimes XChangeKeyboardMapping() maps the keysym to a modifier.
2014-01-19 21:40:25 +01:00
Felix Geyer
34b82da9aa
Initialize cur_focus before it's used.
2014-01-19 20:09:19 +01:00
Albert Weichselbraun
0f91e0d141
Better naming & actually save m_currentRemapKeysym.
2013-12-16 09:41:43 +01:00
Albert Weichselbraun
6a50a76466
Track the last remapped keysym in m_currentRemapKeycode to enforce
...
a new computation of m_remapKeycode when the keyboard layout
changes.
(This fixes a potential problem with AddKeysym overwriting
used keysyms after applying a new keyboard layout).
2013-12-16 09:28:16 +01:00
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