<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><div><div>Le 12 mars 2015 ŕ 05:29, Zoltán Vörös <<a href="mailto:zvoros@gmail.com">zvoros@gmail.com</a>> a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"><br><br>On 03/12/2015 12:13 AM, Matthias Bussonnier wrote:<br><blockquote type="cite">in action.js.<br><br><br>when clicking on save button we ned to ensure that focus get back on notebook, so we call focus,<br>though when triggering the same action from keyboard, calling focus with to command mode.<br><br>Not a trivial change<br></blockquote>Too bad. I have actually looked at action.js, and I see that this <br>problem is a bit more involving. But is it not possible to inspect the <br>event in the 'save_notebook' action, and insert <br>env.notebook.focus_cell() for mouse clicks, and <br>env.notebook.command_mode() for key strokes? I have already tried this, <br>it nothing happened, though, I don't know, why...<br></blockquote><div><br></div><div><br></div><div>Something like <a href="https://github.com/ipython/ipython/pull/8024">https://github.com/ipython/ipython/pull/8024</a> should help, if you want to have a look. </div><div>-- </div><div>M</div><br><blockquote type="cite"><br><br>Cheers,<br>Zoltán<br>_______________________________________________<br>IPython-dev mailing list<br><a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a><br>http://mail.scipy.org/mailman/listinfo/ipython-dev<br></blockquote></div><br></body></html>