Advertisement
Guest User

Untitled

a guest
Dec 18th, 2014
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. Ext.define('Container', {
  2. extend: 'Ext.window.Window',
  3. alias : 'widget.container',
  4.  
  5. title : 'book',
  6. listeners: {
  7. afterrender: function (thisForm, options) {
  8. this.keyMap = Ext.create(
  9. 'Ext.util.KeyMap',
  10. this.el,
  11. [
  12. {
  13. key: 13,
  14. fn: function () {
  15. Ext.Msg.alert('title', 'you click enter');
  16. },
  17. scope: this
  18. }
  19. ]
  20. );
  21. }
  22. },
  23.  
  24. Ext.define('doc', {
  25. extend: 'Ext.panel.Panel',
  26. alias: 'widget.doc',
  27. listeners: {
  28. afterrender: function (thisForm, options) {
  29. this.keyMap = Ext.create(
  30. 'Ext.util.KeyMap',
  31. this.el,
  32. [
  33. {
  34. key: 13,
  35. fn: function () {
  36. Ext.Msg.alert('title', 'enter click');
  37. },
  38. scope: this
  39. }
  40. ]
  41. );
  42. }
  43. },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement