lib/shoes/swt/common/focus.rb in shoes-swt-4.0.0.pre12 vs lib/shoes/swt/common/focus.rb in shoes-swt-4.0.0.rc1

- old
+ new

@@ -1,11 +1,16 @@ # frozen_string_literal: true + class Shoes module Swt module Common module Focus def focus @real.set_focus + end + + def focused? + @real.has_focus end end end end end