##// END OF EJS Templates
Map the return key to enter() and shift-return to enterattr().
walter.doerwald -
Show More
@@ -391,7 +391,7 b' class IGridGrid(wx.grid.Grid):'
391 391 keycode = event.GetKeyCode()
392 392 if keycode == ord("P"):
393 393 row = self.GetGridCursorRow()
394 if event.ShiftDown():
394 if sh:
395 395 col = self.GetGridCursorCol()
396 396 self.pickattr(row, col)
397 397 else:
@@ -404,13 +404,13 b' class IGridGrid(wx.grid.Grid):'
404 404 self.pickrows(sorted(self.current_selection))
405 405 elif keycode in (wx.WXK_BACK, wx.WXK_DELETE, ord("X")) and not (ctrl or sh):
406 406 self.delete_current_notebook()
407 elif keycode == ord("E") and not (ctrl or sh):
408 row = self.GetGridCursorRow()
409 self.enter(row)
410 elif keycode == ord("E") and sh and not ctrl:
407 elif keycode in (ord("E"), ord("\r")):
411 408 row = self.GetGridCursorRow()
409 if sh:
412 410 col = self.GetGridCursorCol()
413 411 self.enterattr(row, col)
412 else:
413 self.enter(row)
414 414 elif keycode == ord("E") and ctrl:
415 415 row = self.GetGridCursorRow()
416 416 self.SetGridCursor(row, self.GetNumberCols()-1)
@@ -1,3 +1,8 b''
1 2007-03-31 Walter Doerwald <walter@livinglogic.de>
2
3 * IPython/Extensions/igrid.py: Map the return key
4 to enter() and shift-return to enterattr().
5
1 6 2007-03-30 Fernando Perez <Fernando.Perez@colorado.edu>
2 7
3 8 * IPython/Magic.py (magic_psearch): add unicode support by
General Comments 0
You need to be logged in to leave comments. Login now