summaryrefslogtreecommitdiffstats
path: root/kxkb/kxkbbindings.cpp
diff options
context:
space:
mode:
authorMavridis Philippe <mavridisf@gmail.com>2023-06-01 12:53:38 +0300
committerMavridis Philippe <mavridisf@gmail.com>2023-06-14 14:18:24 +0300
commit22bb398b3ba83142bf49f6abf47081e5e9e11bef (patch)
tree4783649fb76eb12aac34fb9342e8e8205de616d9 /kxkb/kxkbbindings.cpp
parentbcd2bfcdc49dcf97b730889d5554b15623072a40 (diff)
downloadtdebase-22bb398b3ba83142bf49f6abf47081e5e9e11bef.tar.gz
tdebase-22bb398b3ba83142bf49f6abf47081e5e9e11bef.zip
kxkb: re-add custom TDE switching shortcut
This commit fixes issue #342. Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
Diffstat (limited to 'kxkb/kxkbbindings.cpp')
-rw-r--r--kxkb/kxkbbindings.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/kxkb/kxkbbindings.cpp b/kxkb/kxkbbindings.cpp
new file mode 100644
index 000000000..f4a0fb5c3
--- /dev/null
+++ b/kxkb/kxkbbindings.cpp
@@ -0,0 +1,13 @@
+#ifndef NOSLOTS
+# define DEF( name, key3, key4, fnSlot ) \
+ keys->insert( name, i18n(name), TQString(), key3, key4, TQT_TQOBJECT(this), TQT_SLOT(fnSlot) )
+#else
+# define DEF( name, key3, key4, fnSlot ) \
+ keys->insert( name, i18n(name), TQString(), key3, key4, 0, 0 )
+#endif
+
+ keys->insert( "Program:kxkb", i18n("Keyboard") );
+ DEF( I18N_NOOP("Switch to Next Keyboard Layout"), TDEShortcut(), TDEShortcut(), nextLayout() );
+ DEF( I18N_NOOP("Switch to Previous Keyboard Layout"), TDEShortcut(), TDEShortcut(), prevLayout() );
+
+#undef DEF \ No newline at end of file