r1510 - branches/bxe_2_0/mozile
[email protected] Tue, 26 Sep 2006 16:37:19 +0200 (CEST)
| Newsgroups | gmane.editors.bitflux.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: chregu
Date: Tue Sep 26 16:37:17 2006
New Revision: 1510
Modified:
branches/bxe_2_0/mozile/mozilekb.js
Log:
make cut work
Modified: branches/bxe_2_0/mozile/mozilekb.js
==============================================================================
--- branches/bxe_2_0/mozile/mozilekb.js (original)
+++ branches/bxe_2_0/mozile/mozilekb.js Tue Sep 26 16:37:17 2006
@@ -233,15 +233,15 @@
}
// cut doesn't work yet
- /*
+
if(String.fromCharCode(event.keyCode).toLowerCase() == "x")
{
if (!mozilla.__allowedNativeCalls) {
- window.getSelection().cutKeyDown();
+ window.getSelection().copyKeyDown();
return true;
}
return false;
- }*/
+ }
return false;
}
@@ -275,14 +275,15 @@
return false;
}
//cut doesn't work yet, 'cause we can't cut from html-selections, just from forms
- /*if(String.fromCharCode(event.keyCode).toLowerCase() == "x")
+ if(String.fromCharCode(event.keyCode).toLowerCase() == "x")
{
if (!mozilla.__allowedNativeCalls) {
window.getSelection().copyKeyUp();
+ window.getSelection().cut();
return true;
}
return false;
- }*/
+ }
return false;
}
--
Bx-editor-cvs mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-cvs