Fix selectable detection when using keys on TextBox
This commit is contained in:
@@ -290,7 +290,7 @@ func (this *textBox) runeUnderMouse () int {
|
|||||||
|
|
||||||
func (this *textBox) handleKeyDown (key input.Key, numberPad bool) bool {
|
func (this *textBox) handleKeyDown (key input.Key, numberPad bool) bool {
|
||||||
if this.box.handleKeyDown(key, numberPad) { return true }
|
if this.box.handleKeyDown(key, numberPad) { return true }
|
||||||
if this.selectable { return false }
|
if !this.selectable { return false }
|
||||||
|
|
||||||
// because fuck you thats why!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
// because fuck you thats why!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||||
modifiers := this.Window().Modifiers()
|
modifiers := this.Window().Modifiers()
|
||||||
@@ -334,7 +334,7 @@ func (this *textBox) handleKeyDown (key input.Key, numberPad bool) bool {
|
|||||||
|
|
||||||
func (this *textBox) handleKeyUp (key input.Key, numberPad bool) bool {
|
func (this *textBox) handleKeyUp (key input.Key, numberPad bool) bool {
|
||||||
if this.box.handleKeyUp(key, numberPad) { return true }
|
if this.box.handleKeyUp(key, numberPad) { return true }
|
||||||
if this.selectable { return false }
|
if !this.selectable { return false }
|
||||||
|
|
||||||
modifiers := this.Window().Modifiers()
|
modifiers := this.Window().Modifiers()
|
||||||
switch {
|
switch {
|
||||||
|
|||||||
Reference in New Issue
Block a user