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