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:19:31 +0300
commit4e428e11c5858b5a2485af135cbb2fabd8a3522f (patch)
treeea5edb36e57eb9cbe0621c6b030d66b602c3c1d2 /kxkb/kxkbbindings.cpp
parente4e948060df1bb40207cc62b0d231f3b147c7b16 (diff)
downloadtdebase-4e428e11.tar.gz
tdebase-4e428e11.zip
kxkb: re-add custom TDE switching shortcut
This commit fixes issue #342. Signed-off-by: Mavridis Philippe <mavridisf@gmail.com> (cherry picked from commit 22bb398b3ba83142bf49f6abf47081e5e9e11bef)
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