JSFiddle - React, Tailwind, and code Playground

by Ramkumar Pillai

JavaScript

Ext.application({
    name: 'MyApp',
    launch: function() {
        Ext.create('Ext.container.Viewport', {
            items: {
                html: 'My App'
            }
        });
    },
    listeners: {
        key: function(e) {
            var keyNav = new Ext.util.KeyNav({
                target : e.getEl(),
                backspace: this.myDeleteHandler,
                del: this.myDeleteHandler,
                scope : this
            });
        }
    },
    myDeleteHandler: function() {
       alert("test");
    }
});