Code

add keys reference as webbrowser call
authorbuliabyak <buliabyak@users.sourceforge.net>
Sat, 22 Sep 2007 01:28:14 +0000 (01:28 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Sat, 22 Sep 2007 01:28:14 +0000 (01:28 +0000)
share/extensions/Makefile.am
share/extensions/inkscape_help_keys.inx [new file with mode: 0644]
share/extensions/webbrowser_keys.py [new file with mode: 0755]

index eb642f2acb11f7efe8148760a19c86c57ff36006..fedc580e2b15d9a2c108e01536ee8354ba2a6659 100644 (file)
@@ -99,6 +99,7 @@ extensions = \
        webbrowser_relnotes.py \
        webbrowser_reportabug.py \
        webbrowser_svgspec.py \
+       webbrowser_keys.py \
        whirl.py
 
 otherstuff = \
@@ -154,6 +155,7 @@ modules = \
        inkscape_help_relnotes.inx \
        inkscape_help_reportabug.inx \
        inkscape_help_svgspec.inx \
+       inkscape_help_keys.inx \
        interp.inx \
        lindenmayer.inx \
        lorem_ipsum.inx \
diff --git a/share/extensions/inkscape_help_keys.inx b/share/extensions/inkscape_help_keys.inx
new file mode 100644 (file)
index 0000000..774649a
--- /dev/null
@@ -0,0 +1,12 @@
+<inkscape-extension>
+    <_name>Keys and Mouse Reference</_name>
+    <id>org.inkscape.help.keys</id>
+       <dependency type="executable" location="extensions">webbrowser_keys.py</dependency>
+    <effect needs-document="no">
+               <object-type>all</object-type>
+               <effects-menu hidden="yes"/>
+    </effect>
+    <script>
+        <command reldir="extensions" interpreter="python">webbrowser_keys.py</command>
+    </script>
+</inkscape-extension>
diff --git a/share/extensions/webbrowser_keys.py b/share/extensions/webbrowser_keys.py
new file mode 100755 (executable)
index 0000000..f930247
--- /dev/null
@@ -0,0 +1,3 @@
+#!/usr/bin/env python 
+import webbrowser
+webbrowser.open("http://inkscape.org/doc/keys046.html")