Title: [commits] (alecf) [8544] hacky fix for bug 4788 - force the
DELETE/BACK keys to Delete, not Remove
oops, this was r=john
[email protected] wrote:
- Revision
- 8544
- Author
- alecf
- Date
- 2005-12-07 17:59:26 -0800 (Wed, 07 Dec 2005)
Log Message
hacky fix for bug 4788
- force the DELETE/BACK keys to Delete, not Remove
Modified Paths
Diff
Modified:
branches/Chandler_0.6/chandler/parcels/osaf/framework/blocks/calendar/CollectionCanvas.py
(8543 => 8544)
--- branches/Chandler_0.6/chandler/parcels/osaf/framework/blocks/calendar/CollectionCanvas.py 2005-12-08 01:37:01 UTC (rev 8543)
+++ branches/Chandler_0.6/chandler/parcels/osaf/framework/blocks/calendar/CollectionCanvas.py 2005-12-08 01:59:26 UTC (rev 8544)
@@ -296,15 +296,15 @@
# invisible window and send all focus (i.e. keyboard) events
# through it.
self._focusWindow = wx.Window(self, -1, size=wx.Size(0,0))
- self._focusWindow.Bind(wx.EVT_KEY_UP, self.OnKeyUp)
+ #self._focusWindow.Bind(wx.EVT_KEY_UP, self.OnKeyUp)
def SetPanelFocus(self):
self._focusWindow.SetFocus()
def OnKeyUp(self, event):
if (event.m_keyCode in (wx.WXK_DELETE, wx.WXK_BACK) and
- self.blockItem.CanRemove()):
- self.blockItem.onRemoveEvent(event)
+ self.blockItem.CanDelete()):
+ self.blockItem.onDeleteEvent(event)
else:
event.Skip()
Modified:
branches/Chandler_0.6/chandler/parcels/osaf/framework/blocks/calendar/TimedCanvas.py
(8543 => 8544)
--- branches/Chandler_0.6/chandler/parcels/osaf/framework/blocks/calendar/TimedCanvas.py 2005-12-08 01:37:01 UTC (rev 8543)
+++ branches/Chandler_0.6/chandler/parcels/osaf/framework/blocks/calendar/TimedCanvas.py 2005-12-08 01:59:26 UTC (rev 8544)
@@ -148,7 +148,7 @@
self.Scroll(0, (self.hourHeight*7)/self._scrollYRate)
self.Bind(wx.EVT_SIZE, self.OnSize)
- self.Bind(wx.EVT_KEY_DOWN, self.OnKeyPressed)
+ #self.Bind(wx.EVT_KEY_DOWN, self.OnKeyPressed)
def ScaledScroll(self, dx, dy):
(scrollX, scrollY) = self.CalcUnscrolledPosition(0,0)
_______________________________________________
Commits mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/commits
|
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Open Source Applications Foundation "Dev" mailing list
http://lists.osafoundation.org/mailman/listinfo/dev