PageSourceSearch

https://innovativepercussion.com/DXR.axd?r=1_225-zrGPs

js innovativepercussion.com collected 2026-10-03 22:17:26 UTC 2,272 bytes, 66 lines download raw bytes

1(function() {
2var GridKbdHelper = ASPx.CreateClass(ASPx.KbdHelper, {
3 constructor: function(grid) {
4  this.constructor.prototype.constructor.call(this, grid);
5  this.grid = grid;
6 },
7 CanFocus: function(e) {
8  var source = ASPx.Evt.GetEventSource(e);
9  if(source.tagName === "A")
10   return true;
11  return ASPx.KbdHelper.prototype.CanFocus.call(this, e);
12 },
13 HandleNoFocusAction: function(e, actionName) {
14  this.HandleKbdEvent(e, actionName);
15 },
16 HandleKeyDown: function(e) {
17  return this.HandleKbdEvent(e, "HandleKeyDown");
18 },
19 HandleKeyPress: function(e) {
20  return this.HandleKbdEvent(e, "HandleKeyPress");
21 },
22 HandleKeyUp: function(e) {
23  return this.HandleKbdEvent(e, "HandleKeyUp");
24 },
25 HandleKbdEvent: function(e, actionName) {
26  var action = actionName.replace(/^Handle*/g, "Raise");
27  var handled = this.grid[action](e);
28  if(handled)
29   ASPx.Evt.PreventEventAndBubble(e);
30  return handled;
31 }
32});
33var ASPxClientGridKeyboardEvent = ASPx.CreateClass(ASPxClientEvent, {
34 constructor: function(kbdHelperOwner) {
35  this.constructor.prototype.constructor.call(this);
36  this.kbdHelperOwner = kbdHelperOwner;
37 },
38 AddHandler: function(handler, executionContext) {
39  ASPxClientEvent.prototype.AddHandler.call(this, handler, executionContext);
40  this.kbdHelperOwner.OnKbdEventChanged();
41 },
42 RemoveHandler: function(handler, executionContext) {
43  ASPxClientEvent.prototype.RemoveHandler.call(this, handler, executionContext);
44  this.kbdHelperOwner.OnKbdEventChanged();
45 },
46 ClearHandlers: function() {
47  ASPxClientEvent.prototype.ClearHandlers.call(this);
48  this.kbdHelperOwner.OnKbdEventChanged();
49 }
50});
51var ASPxClientGridKeyboardEventArgsBase = ASPx.CreateClass(ASPxClientEventArgs, {
52 constructor: function(htmlEvent) {
53  this.constructor.prototype.constructor.call(this);
54  this.htmlEvent = htmlEvent;
55  this.handled = false;
56  this.isCtrlPressed = htmlEvent.ctrlKey;
57  this.isAltPressed = htmlEvent.altKey;
58  this.isShiftPressed = htmlEvent.shiftKey;
59  this.keyCode = ASPx.Evt.GetKeyCode(htmlEvent);
60 }
61});
62ASPx.GridKbdHelper = GridKbdHelper;
63ASPx.ASPxClientGridKeyboardEvent = ASPxClientGridKeyboardEvent;
64ASPx.ASPxClientGridKeyboardEventArgsBase = ASPxClientGridKeyboardEventArgsBase;
65})();
66

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.