summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorStephan Schäfer <ssa@openoffice.org>2002-10-23 11:13:22 +0000
committerStephan Schäfer <ssa@openoffice.org>2002-10-23 11:13:22 +0000
commit1b21f7ad95bafd4ff9cbcd62cbb27fbe0fb419a7 (patch)
tree837cc4c9c8b58fa6a09db764819e3c9f3ceb26b2 /vcl
parent9ea470fe84dc87d1249ebe6aeb2e21fb6d40e1b5 (diff)
#101009# provide list of reserved keycodes
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/app/svapp.cxx12
-rw-r--r--vcl/source/window/winproc.cxx13
2 files changed, 21 insertions, 4 deletions
diff --git a/vcl/source/app/svapp.cxx b/vcl/source/app/svapp.cxx
index 8e6ebb1c2890..a837a0e8ba73 100644
--- a/vcl/source/app/svapp.cxx
+++ b/vcl/source/app/svapp.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: svapp.cxx,v $
*
- * $Revision: 1.35 $
+ * $Revision: 1.36 $
*
- * last change: $Author: ssa $ $Date: 2002-10-22 09:39:05 $
+ * last change: $Author: ssa $ $Date: 2002-10-23 12:13:22 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -167,6 +167,7 @@
using namespace ::com::sun::star::uno;
+extern KeyCode ImplReservedKeyCodes[];
// #include <usr/refl.hxx>
class Reflection;
@@ -480,6 +481,13 @@ void Application::Abort( const XubString& rErrorText )
// -----------------------------------------------------------------------
+const KeyCode* Application::GetReservedKeyCodes()
+{
+ return ImplReservedKeyCodes;
+}
+
+// -----------------------------------------------------------------------
+
#ifdef REMOTE_APPSERVER
ImplRemoteYieldMutex::ImplRemoteYieldMutex()
diff --git a/vcl/source/window/winproc.cxx b/vcl/source/window/winproc.cxx
index 53847a0dd8ae..aece4d71554f 100644
--- a/vcl/source/window/winproc.cxx
+++ b/vcl/source/window/winproc.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: winproc.cxx,v $
*
- * $Revision: 1.66 $
+ * $Revision: 1.67 $
*
- * last change: $Author: ssa $ $Date: 2002-10-23 08:44:23 $
+ * last change: $Author: ssa $ $Date: 2002-10-23 12:12:40 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -159,6 +159,15 @@
#pragma hdrstop
+// keycodes handled internally by VCL
+KeyCode ImplReservedKeyCodes[] = {
+ KeyCode(KEY_F1,0), KeyCode(KEY_F1,KEY_SHIFT), KeyCode(KEY_F1,KEY_MOD1), // help
+ KeyCode(KEY_F2,KEY_SHIFT), // help
+ KeyCode(KEY_F6,0), KeyCode(KEY_F6,KEY_MOD1),KeyCode(KEY_F6,KEY_SHIFT), // navigation
+ KeyCode(KEY_F10,0), // menu
+ KeyCode(0,0)
+};
+
// =======================================================================
#define IMPL_MIN_NEEDSYSWIN 49