Ticket #5644: trac_5644_esc_kills_introspect.patch

File trac_5644_esc_kills_introspect.patch, 766 bytes (added by mpatel, 12 years ago)

See comment.

  • sage/server/notebook/js.py

    # HG changeset patch
    # User Mitesh Patel <qed777@gmail.com>
    # Date 1240045167 25200
    # Node ID dd79b7578513bd9ebcdffa9e1f69a0c3dc38bf27
    # Parent  96f5cac6d5f8fe22ae58dbf96eac6ea34bad7d91
    Ticket #5644: Escape removes introspection window.  First try.
    
    diff --git a/sage/server/notebook/js.py b/sage/server/notebook/js.py
    a b  
    19971997            return false; //otherwise, keep going
    19981998        }
    19991999        halt_introspection();
     2000    } else if((introspect_id == id) && introspection_loaded) {
     2001        if(key_close_helper(e)) {
     2002            halt_introspection();
     2003            return false; //otherwise, keep going
     2004        }
    20002005    }
    20012006
    20022007    var selection_range = get_selection_range(cell_input);