Google Groups Home Help | Sign in
Implement SHIFT+TAB as [aleft]
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Casey West  
View profile
 More options Jun 1 2007, 1:47 pm
From: Casey West <ca...@geeknest.com>
Date: Fri, 1 Jun 2007 13:47:21 -0400
Local: Fri, Jun 1 2007 1:47 pm
Subject: Implement SHIFT+TAB as [aleft]
Simple code using the Event object available from MooTools. This  
checks for `Event.shift` and adjusts our case accordingly.

--
Casey West

Index: WKCjs.txt
===================================================================
--- WKCjs.txt   (revision 68)
+++ WKCjs.txt   (revision 69)
@@ -101,6 +101,9 @@
     case 37: ch="[aleft]"; break;
     case 38: ch="[aup]"; break;
     case 9:
+       var tab = new Event(e);
+       ch = (tab.shift? "[aleft]" : "[aright]");
+       break;
     case 39: ch="[aright]"; break;
     case 40: ch="[adown]"; break;
     case 13: ch="[enter]"; break;
@@ -143,6 +146,9 @@
     case 37: ch="[aleft]"; break;
     case 38: ch="[aup]"; break;
     case 9:
+       var tab = new Event(e);
+       ch = (tab.shift? "[aleft]" : "[aright]");
+       break;
     case 39: ch="[aright]"; break;
     case 40: ch="[adown]"; break;
     case 13: ch="[enter]"; break;


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google