Faculty of Information Technology
Software Engineering Group

Ticket #186: smallsense_fix_1_of_1_rev_3e56a34918b6_Issue__186__do_not_delegate_event_if_it_has_been_delegated_already.patch

File smallsense_fix_1_of_1_rev_3e56a34918b6_Issue__186__do_not_delegate_event_if_it_has_been_delegated_already.patch, 1.2 KB (added by Jan Vrany, 2 years ago)
  • SmallSense__CompletionView.st

    # HG changeset patch
    # User Jan Vrany <jan.vrany@fit.cvut.cz>
    # Date 1513295468 0
    #      Thu Dec 14 23:51:08 2017 +0000
    # Node ID 3e56a34918b6158a9f00e0681103eb0d03e63399
    # Parent  d3919703de3cf73c934901a40fbf78ba827a3cb7
    Issue #186: do not delegate event if it has been delegated already
    
    ...since it causes an endless recursion.
    
    https://swing.fit.cvut.cz/projects/stx-jv/ticket/186
    
    diff -r d3919703de3c -r 3e56a34918b6 SmallSense__CompletionView.st
    a b  
    1 "{ Encoding: utf8 }"
    2 
    31"
    42stx:goodies/smallsense - A productivity plugin for Smalltalk/X IDE
    53Copyright (C) 2013-2015 Jan Vrany
     
    127125!CompletionView methodsFor:'event handling'!
    128126
    129127keyPress:key x:x y:y
     128    x isNil ifTrue:[
     129        "/ Already re-delegated   
     130        ^ self
     131    ].
    130132    ^ listView keyPress:key x:x y:y
    131133
    132134    "Created: / 27-09-2013 / 14:05:54 / Jan Vrany <jan.vrany@fit.cvut.cz>"
    133135    "Modified: / 31-03-2014 / 22:53:43 / Jan Vrany <jan.vrany@fit.cvut.cz>"
     136    "Modified: / 14-12-2017 / 23:17:22 / jv"
    134137! !
    135138
    136139!CompletionView methodsFor:'initialization & release'!