Sha256: 9730d8226b1225e9e4d2bb38a60a5b3af060e811a15d18f04a42950eed0e467a

Contents?: true

Size: 1.37 KB

Versions: 35

Compression:

Stored size: 1.37 KB

Contents

// ========================================================================
// SproutCore -- JavaScript Application Framework
// Copyright ©2006-2008, Sprout Systems, Inc. and contributors.
// Portions copyright ©2008 Apple Inc.  All rights reserved.
// ========================================================================

// Key Bindings are used to map a keyboard input to an action message on a
// responder.  These bindings are most useful when implementing sophisticated
// keyboard input mechanisms.  For keyboard shortcuts, instead use menus, etc.

SC.MODIFIED_KEY_BINDINGS = {
  'ctrl_.': 'cancel',
  'shift_tab': 'insertBacktab',
  'shift_left': 'moveLeftAndModifySelection',
  'shift_right': 'moveRightAndModifySelection',
  'shift_up': 'moveUpAndModifySelection',
  'shift_down': 'moveDownAndModifySelection',
  'alt_left': 'moveLeftAndModifySelection',
  'alt_right': 'moveRightAndModifySelection',
  'alt_up': 'moveUpAndModifySelection',
  'alt_down': 'moveDownAndModifySelection',
  'ctrl_a': 'selectAll'
} ;

SC.BASE_KEY_BINDINGS = {
  'escape': 'cancel',
  'backspace': 'deleteBackward',
  'delete': 'deleteForward',
  'return': 'insertNewline',
  'tab': 'insertTab',
  'left': 'moveLeft',
  'right': 'moveRight',
  'up': 'moveUp',
  'down': 'moveDown',
  'home': 'moveToBeginningOfDocument',
  'end': 'moveToEndOfDocument',
  'pagedown': 'pageDown',
  'pageup': 'pageUp'
} ;

Version data entries

35 entries across 35 versions & 2 rubygems

Version Path
sproutit-sproutcore-1.0.20090721145285 frameworks/sproutcore/frameworks/desktop/system/key_bindings.js
sproutcore-1.4.4-java lib/frameworks/sproutcore/frameworks/desktop/system/key_bindings.js
sproutcore-1.4.4 lib/frameworks/sproutcore/frameworks/desktop/system/key_bindings.js
sproutcore-1.4.3.1 lib/frameworks/sproutcore/frameworks/desktop/system/key_bindings.js
sproutcore-1.4.3-java lib/frameworks/sproutcore/frameworks/desktop/system/key_bindings.js
sproutcore-1.4.3 lib/frameworks/sproutcore/frameworks/desktop/system/key_bindings.js
sproutcore-1.4.2-java lib/frameworks/sproutcore/frameworks/desktop/system/key_bindings.js
sproutcore-1.4.2 lib/frameworks/sproutcore/frameworks/desktop/system/key_bindings.js
sproutcore-1.4.1-java lib/frameworks/sproutcore/frameworks/desktop/system/key_bindings.js
sproutcore-1.4.1 lib/frameworks/sproutcore/frameworks/desktop/system/key_bindings.js
sproutcore-1.4.0-java lib/frameworks/sproutcore/frameworks/desktop/system/key_bindings.js
sproutcore-1.4.0 lib/frameworks/sproutcore/frameworks/desktop/system/key_bindings.js
sproutcore-1.4.0.rc.5 lib/frameworks/sproutcore/frameworks/desktop/system/key_bindings.js
sproutcore-1.4.0.rc.4 lib/frameworks/sproutcore/frameworks/desktop/system/key_bindings.js
sproutcore-1.4.0.rc.3 lib/frameworks/sproutcore/frameworks/desktop/system/key_bindings.js
sproutcore-1.4.0.rc.2 lib/frameworks/sproutcore/frameworks/desktop/system/key_bindings.js
sproutcore-1.4.0.rc lib/frameworks/sproutcore/frameworks/desktop/system/key_bindings.js
sproutcore-1.0.1049.pre.2 lib/frameworks/sproutcore/frameworks/desktop/system/key_bindings.js
sproutcore-1.0.1049.pre.1 frameworks/sproutcore/frameworks/desktop/system/key_bindings.js
sproutcore-1.0.1046 frameworks/sproutcore/frameworks/desktop/system/key_bindings.js