aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/mist/assets/ext/mist.js
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/mist/assets/ext/mist.js')
-rw-r--r--cmd/mist/assets/ext/mist.js35
1 files changed, 35 insertions, 0 deletions
diff --git a/cmd/mist/assets/ext/mist.js b/cmd/mist/assets/ext/mist.js
new file mode 100644
index 000000000..8734f8dc7
--- /dev/null
+++ b/cmd/mist/assets/ext/mist.js
@@ -0,0 +1,35 @@
+// Copyright (c) 2015, ETHDEV. All rights reserved.
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this library; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+// MA 02110-1301 USA
+
+// this function is included locally, but you can also include separately via a header definition
+
+console.log("loaded?");
+
+document.onkeydown = function(evt) {
+ evt = evt || window.event;
+ if (evt.ctrlKey && evt.keyCode == 67) {
+ window.document.execCommand("copy");
+ console.log("Ctrl-C");
+ } else if (evt.ctrlKey && evt.keyCode == 88) {
+ window.document.execCommand("cut");
+ console.log("Ctrl-X");
+ } if (evt.ctrlKey && evt.keyCode == 86) {
+ console.log("Ctrl-V");
+ } if (evt.ctrlKey && evt.keyCode == 90) {
+ console.log("Ctrl-Z");
+ }
+}; \ No newline at end of file
f the .dat fileehaupt2005-12-051-0/+1 * - Add SHA256pav2005-11-269-0/+11 * big whitespace cleanup (see ports/65409)edwin2005-11-252-5/+5 * Fix fetch.novel2005-11-131-1/+3 * Update to KDE 3.4.3 / KOffice 1.4.2lofi2005-11-0511-16/+13 * Remove expired portskris2005-11-0512-591/+0 * Bump PORTREVISION to chase the glib20 shared library update.marcus2005-11-051-1/+1 * Unbreak port by using pkg-install and pkg-deinstall scripts.edwin2005-11-043-8/+39 * Unbreak port by fixing pkg-plist and adding pkg-install andedwin2005-11-044-13/+52 * Remove all the secondary port of editors/ooodict-allmaho2005-11-012-23/+0 * BROKEN: Incorrect pkg-plistkris2005-10-291-0/+2 * Make it respect X11BASE.novel2005-10-221-1/+1 * Upgrade to 1.15.4ache2005-10-223-16/+16 * Upgrade to 1.5.1ache2005-10-172-3/+5 * Reset bouncing maintainer address, mark as BROKEN since it no longer fetches.linimon2005-10-101-4/+5 * Remove unnecessary setting of DISTNAME.fenner2005-10-071-2/+1 * This port has been deprecated for 3 months.yar2005-10-052-27/+0 * - Change my e-mailaz2005-10-031-1/+1 * - Fix fetching problem [1]novel2005-09-261-3/+1 * unbreak OSSP mm based ports after library version bumprse2005-09-091-1/+1 * - RIP russian version of nagios. It's too old. No new one available.sem2005-08-3020-827/+0 * Fix index build by moving openoffice.org-1.1 ports.maho2005-08-291-1/+1 * Update to KDE 3.4.2 / KOffice 1.4.1lofi2005-08-018-13/+13 * This port is scheduled for deletion on 2005-09-22 if it is still brokenkris2005-07-234-0/+8 * Update to KOffice 1.4.0a.lofi2005-07-069-87/+126 * Remove openoffice.org localized ports as I announced:maho2005-06-293-44/+0 * Update to KDE 3.4.1lofi2005-06-268-48/+60 * Upgrade to 0.99f9ache2005-06-062-3/+3 * - Follow the new teTeX structuresem2005-06-065-51/+54 * - Unbreak and general updatepav2005-06-061-2/+3 * Disable building packages from this portyar2005-05-301-0/+2 * - Match the reality of bogofilter 0.94.13.yar2005-05-301-2/+6 * - Remove linux-mozillafirebird and it's language spinoffs. This port ispav2005-05-284-40/+0 * - Update CONFLICTSpav2005-05-261-1/+1 * Mark ru-bogofilter port as broken to prevent people from upgradingyar2005-05-231-0/+2 * Added slave port of lang/php_doc for the Russian languageedwin2005-05-232-0/+14 * Fix CONFLICTS (again - don't blame me!):skv2005-05-131-1/+1 * Fix CONFLICTS:skv2005-05-131-1/+1 * Add unzip , unzip with CP866 and KOI8-R support.skv2005-05-133-0/+98 * - update to 3.2.1novel2005-04-202-5/+5 * At Kris's request, back out the MACHINE_ARCH spelling correction untilobrien2005-04-122-2/+2 * Assist getting more ports working on AMD64 by obeying theobrien2005-04-112-2/+2 * Remove myself from maintainerache2005-04-081-1/+1 * Fix a typo in the kio translation, which causes all Open File / Save Filelofi2005-03-284-0/+24 * Update to KDE 3.4lofi2005-03-214-62/+522 * Bump PORTREVISION to chase the glib20 shared lib version change.marcus2005-03-121-1/+1 * Upgrade to 0.99f8ache2005-03-112-4/+3 * Use @freebsd.org address for my ports.novel2005-03-082-2/+2 * BROKEN: Incorrect pkg-plistkris2005-02-282-0/+4 * BROKEN: Changes permissions of installed directorykris2005-02-281-0/+2 * Update to version 7.0rc12krion2005-02-138-20/+140 * BROKEN: Removes pine.conf upon deinstallationkris2005-02-121-0/+2 * - don't create httpd.conf.bakclement2005-02-124-0/+32 * Split the postgresql ports into a server and a client part.girgen2005-01-311-1/+1 * [ maintainer ] russian/prawda: try to fix build on 6.x/i386 and 6.x/sparc64edwin2005-01-124-10/+36 * - Fix pkg-plistsem2005-01-081-1/+1 * Say hello to the linux mega patch, it consolidates our linux bits anetchild2005-01-011-3/+0 * Add i18nized doc subdirs to kdehier and adjust i18n port plists accordingly.lofi2004-12-235-5/+0 * Drop maintainership.krion2004-12-221-1/+1 * Remove myself from MAINTAINERache2004-12-141-1/+1 * Update to KDE 3.3.2lofi2004-12-1412-32/+134 * Remove myself from MAINTAINERache2004-12-141-1/+1 * - Update to 7.1rc4pav2004-11-1626-212/+422 * Update to KDE 3.3.1lofi2004-11-08