summaryrefslogtreecommitdiff
path: root/lib/scripts/edit.js
diff options
context:
space:
mode:
authorAndreas Gohr <gohr@cosmocode.de>2009-08-04 17:05:01 +0200
committerAndreas Gohr <gohr@cosmocode.de>2009-08-04 17:05:01 +0200
commit8f99c3ec15712c974b5a5caf5f40ef9170103f67 (patch)
tree0cd92ce48d719617bca1021bad2659959b0bbe68 /lib/scripts/edit.js
parent201ea5f3891ddc2bd1841288c6c03916fe3c68dc (diff)
downloadrpg-8f99c3ec15712c974b5a5caf5f40ef9170103f67.tar.gz
rpg-8f99c3ec15712c974b5a5caf5f40ef9170103f67.tar.bz2
Some text selection workarounds for MSIE
Ignore-this: b4a14bbf96712ec9ce9011e172f2af81 This patch solves some problems with reading the cursor positions and text selection on MSIE. note: development was part of the ICKE 2.0 project see http://www.icke-projekt.de for info darcs-hash:20090804150501-6e07b-5e3cf60261f5f51906df2d4cf15509e9075757e0.gz
Diffstat (limited to 'lib/scripts/edit.js')
-rw-r--r--lib/scripts/edit.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/scripts/edit.js b/lib/scripts/edit.js
index 51a8e3f8e..fe9057898 100644
--- a/lib/scripts/edit.js
+++ b/lib/scripts/edit.js
@@ -210,7 +210,7 @@ function keyHandler(e){
if(e.keyCode == 13){ // Enter //FIXME IE
// keep current indention for lists and code
- var match = search.match(/(\n +([*-] ?)?)/);
+ var match = search.match(/(\n +([\*-] ?)?)/);
if(match){
insertAtCarret(field.id,match[1]);
e.preventDefault(); // prevent enter key