YueLiang
52e25acf22
Fix bug for get natice keycode failed in mac ( #66 )
...
TISCopyCurrentKeyboardInputSource will return null when using Chinese input method.
Use TISCopyCurrentASCIICapableKeyboardLayoutInputSource instead.
2022-02-21 10:01:45 +02:00
Daniel Bermond
6a0cc377e6
Bump version to 1.5.0
2021-10-29 00:08:58 +03:00
Hennadii Chernyshchyk
1114df5081
Bump version to 1.4.2 in QMake
2021-10-05 19:09:12 +03:00
Hennadii Chernyshchyk
e0bc2a9b9f
Fix shared library build
2021-10-05 19:07:12 +03:00
Hennadii Chernyshchyk
7f5840fd34
Add CI
2021-10-03 16:53:20 +03:00
Daniel Bermond
7b10ea6d64
Qt6 support for Windows and Mac ( #54 )
...
This follows commit 25f2184 .
On Windows, changing the return value of the qHash() variant that
takes one argument fixes the following warning on MSVC 2019:
qhotkey.cpp:(371,45): warning C4267: 'return': conversion from
'size_t' to 'uint', possible loss of data
2021-10-03 14:18:23 +03:00
Daniel Bermond
25f21849b3
Add support for Qt6 ( #51 )
...
CMake:
The 'QT_MAJOR' CMake variable controls which major version
of Qt is used for building. Defaults to '5', so nothing
changes when using the default 'cmake' invocation, as it
will default to search/build for Qt5.
qmake:
Just build in the usual way with 'qmake6 && make' or
'qmake-qt5 && make'.
When building with Qt6 on GNU/Linux and similar UNIXes,
the minimium required Qt version is 6.2.0, as Qt 6.1
and 6.0 lacks support for getting the X11 display.
2021-09-30 20:46:35 +03:00
Shatur95
8584ff1b15
Use QTimer::singleShort
...
https://doc.qt.io/qt-5/qtimer.html#singleShot-4
2020-10-20 13:33:22 +03:00
Shatur95
384f780b28
Use QStringLiteral
2020-10-17 01:08:08 +03:00
Shatur95
4bb901a41e
Pass NativeShortcut by value (trivially copyable)
2020-10-17 01:07:57 +03:00
Shatur95
2a87965ed6
Add mising override
2020-10-15 22:12:11 +03:00
Shatur95
f0799fd4a4
Fix Clang Tidy warnings
...
readability-convert-member-functions-to-static
modernize-use-auto
readability-else-after-return
readability-static-accessed-through-instance
readability-inconsistent-declaration-parameter-name
2020-10-15 21:50:58 +03:00
Shatur95
b73b4955ae
Fix implicit conversion warning
2020-10-15 01:31:52 +03:00
Oleg Antonyan
941cb2f15f
fix SIGSEGV on wayland
2020-08-18 20:43:44 +02:00
Shatur95
483e07365e
Improve error messages
...
* Show information about shortcut.
* Make errors translatable.
2020-07-01 23:16:13 +03:00
Patrizio Bekerle
0352904ec1
Fix not declared MOD_NOREPEAT (Skycoder42/QHotkey/#36) ( #37 )
...
Fix not declared MOD_NOREPEAT (#36 )
2020-05-23 07:46:08 +02:00
Skycoder42
7028920db5
fix #33
2020-05-02 21:05:04 +02:00
Alexandre Vicente
e113ace9a1
Indentation fix
2020-04-21 22:10:49 -03:00
Alexandre Vicente
12e05bfd4e
Fix missing poll connect on Windows
2020-04-21 22:02:52 -03:00
Alexandre Vicente
d32957e52c
X11 header fix
2020-04-21 15:48:50 -03:00
Alexandre Vicente
5b507a84df
Hotkey release signal
2020-04-21 12:45:10 -03:00
Hennadii Chernyshchyk
9583eafe76
Add isPlatformSupported() ( #28 )
...
* Add isPlatformSupported()
* Remove extra semicolons
* Add newlines before new methods
2020-01-07 09:31:37 +01:00
Shatur95
a7110cabb3
Fix crash on Wayland
2019-11-06 01:34:42 +02:00
Skycoder42
700367d132
updated readme and documentation
2018-03-11 00:06:42 +01:00
Andriy Semenets
9a90aff273
Fix issue with non-English keyboard on Windows
...
Full issue described in #17 .
2018-03-10 16:42:45 +02:00
Skycoder42
fc259100b2
added addGlobalMapping method
...
Enables overrides for specific key sequences, fixes #11
2017-12-21 18:12:48 +01:00
aknobloch
f549a7763f
X11 Media Key Support
2017-12-20 20:15:02 -05:00
Skycoder42
d46af31902
Add define to stay compatible to pre Qt5.8
2017-11-08 14:07:59 +01:00
Kolcha
9a04e8f539
added Q_FALLTHROUGH macro
2017-11-08 14:16:07 +03:00
Kolcha
974af9253c
removed warning for wide range of GCC versions (5,6,7)
2017-11-08 12:55:42 +03:00
Skycoder42
0943bb0494
lib fixup
2017-10-23 15:36:25 +02:00
Martin T. H. Sandsmark
b910580fce
add target to build as normal library
2017-10-22 14:00:59 +02:00
Skycoder42
83910c8eca
fixed invalid key detection
2017-09-30 19:21:26 +02:00
Skycoder42
1833a053f6
fixed xerrorhandler
...
fixes #4
2017-06-25 14:40:03 +02:00
Skycoder42
2578b69dc5
remove recursive call
...
detected by #4
2017-06-02 21:24:14 +02:00
Skycoder42
cdb4d37453
replaced XSync by XFlush
2017-05-14 22:27:26 +02:00
Skycoder42
9eace8fbbd
do not discard events on XSync
2017-05-14 13:39:54 +02:00
Skycoder42
6baf644b40
fixed misread parameter
...
#3
2017-05-14 13:35:13 +02:00
Skycoder42
3fa176a380
Added XSync call for hotkey without window
...
For #3
2017-05-14 13:32:06 +02:00
Skycoder42
53bd8cdd14
code cleanup
2017-04-18 16:31:05 +02:00
Skycoder42
898e3b9b6d
updated doc
2016-12-04 17:28:37 +01:00
Skycoder42
038884883e
... and x11
2016-12-04 17:02:26 +01:00
Skycoder42
686abe219a
added native shortcut support (win)
2016-12-04 16:49:53 +01:00
Skycoder42
5cc4b7bf2d
moved pri file
2016-12-04 16:20:51 +01:00
Skycoder42
1a5798587c
... on mac
2016-12-04 15:54:29 +01:00
Skycoder42
5d770d60a0
modified native hotkey to allow 0 as valid key
2016-12-04 16:03:12 +01:00
Skycoder42
49da8b1c5c
updated 0 to nullptr
2016-11-01 16:28:53 +01:00
Skycoder42
3c40d30190
doc ready and add QPrivateSignal to activated
2016-02-08 15:33:52 +01:00
Skycoder42
1007dd07bc
added doxyfile and begin doc
2016-02-08 14:25:59 +01:00
Skycoder42
8eb1ad543a
shutdown thread fail repaired (test)
2016-02-08 13:45:40 +01:00