#UI_ENHANCEMENT by cg
class: SmallSense::CriticsWindow
comment/format in: #postBuildWith:
changed: #processEvent:
always stay on top
--- a/SmallSense__CriticsWindow.st Sun Feb 26 15:17:18 2017 +0100
+++ b/SmallSense__CriticsWindow.st Sat Mar 18 14:26:35 2017 +0100
@@ -578,7 +578,13 @@
!CriticsWindow methodsFor:'event processing'!
processEvent: anEvent
-
+ "/ always stay on top
+ (anEvent isPointerEnterLeaveEvent
+ or:[ anEvent isFocusEvent
+ or:[ anEvent view notNil and:[ anEvent view isComponentOf:codeView topView ]]]) ifTrue:[
+ self window raise.
+ ].
+
anEvent isKeyReleaseEvent ifTrue:[
anEvent key == #Escape ifTrue:[
self closeRequest. "/ closeDownViews.
@@ -599,8 +605,9 @@
^false
- "Created: / 16-02-2012 / 14:09:33 / Jan Vrany "
- "Modified (format): / 31-03-2014 / 16:53:41 / Jan Vrany "
+ "Created: / 16-02-2012 / 14:09:33 / Jan Vrany"
+ "Modified (format): / 31-03-2014 / 16:53:41 / Jan Vrany"
+ "Modified (comment): / 18-03-2017 / 14:26:11 / cg"
! !
!CriticsWindow methodsFor:'hooks'!
@@ -615,10 +622,12 @@
entered := false.
self updateRationaleAndFixes.
+
window beSlave.
- "Created: / 03-04-2011 / 10:45:10 / Jan Vrany "
- "Modified: / 16-02-2012 / 14:14:07 / Jan Vrany "
+ "Created: / 03-04-2011 / 10:45:10 / Jan Vrany"
+ "Modified: / 16-02-2012 / 14:14:07 / Jan Vrany"
+ "Modified (comment): / 18-03-2017 / 14:24:50 / cg"
!
postOpenWith: bldr