Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Ext.define('Container', {
- extend: 'Ext.window.Window',
- alias : 'widget.container',
- title : 'book',
- listeners: {
- afterrender: function (thisForm, options) {
- this.keyMap = Ext.create(
- 'Ext.util.KeyMap',
- this.el,
- [
- {
- key: 13,
- fn: function () {
- Ext.Msg.alert('title', 'you click enter');
- },
- scope: this
- }
- ]
- );
- }
- },
- Ext.define('doc', {
- extend: 'Ext.panel.Panel',
- alias: 'widget.doc',
- listeners: {
- afterrender: function (thisForm, options) {
- this.keyMap = Ext.create(
- 'Ext.util.KeyMap',
- this.el,
- [
- {
- key: 13,
- fn: function () {
- Ext.Msg.alert('title', 'enter click');
- },
- scope: this
- }
- ]
- );
- }
- },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement