Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 381
- Log:
Radiant is now packaged as a Gem - see Changeset #373, Changeset #374,
Changeset #375, Changeset #376, Changeset #377, Changeset #378,
Changeset #379 and Changeset #380. The application part of Radiant is
now mostly empty; it exists to provide a structure which hooks into the
gem and which provides a framework for extensions. Included in this big
changeset are all the deletions, additions and changes needed to go from
the old ROOL customised Radiant to a new ROOL customised Radiant, which
includes several custom extensions adapted from the old Radiant
modifications and requires Radiant 0.9.1 to be installed as a gem.
- Author:
- rool
- Date:
- Mon Mar 21 14:01:18 +0000 2011
- Size:
- 832 Bytes
1 | var ShortcutKeysBehavior = Behavior.create({ |
2 | onkeydown: function(event){ |
3 | var character = String.fromCharCode(event.keyCode); |
4 | if(!event.shiftKey && !character.blank()) |
5 | character = character.toLowerCase(); |
6 | if(event.ctrlKey && event.keyCode != 17){ |
7 | var button = $$('input[accesskey='+character+']')[0]; |
8 | if(button){ |
9 | event.stop(); |
10 | button.click(); |
11 | } else { |
12 | var control = TabControls['tab_control']; |
13 | if(event.keyCode == 219){ // [ |
14 | control.selectPreviousTab(); |
15 | } |
16 | if(event.keyCode == 221){ // ] |
17 | control.selectNextTab(); |
18 | } |
19 | if(event.keyCode >= 49 && event.keyCode <= 57){ // 1..9 |
20 | var index = event.keyCode - 49; |
21 | control.selectTabByIndex(index); |
22 | event.stop(); |
23 | } |
24 | } |
25 | } |
26 | } |
27 | }); |