rename modifier_down to key_down

[?]
Jun 6, 2023, 5:21 AM
7IDHIAYI6QD7HU7VGOVO2FA7IG3NGD4TDH2Q2WPRDVXUR44OSFOQC

Dependencies

  • [2] N2NUGNN4 include a brief reference enabling many useful apps
  • [3] G6OYAYHU paste in text with M-v
  • [4] ETM7ENJR some helpers
  • [5] HXH4AIF2 primitives for writing tests
  • [6] JFFUF5AL override mouse state lookups in tests
  • [7] 3HDWCPDI bugfix: include shift keys in modifier_down
  • [8] ZLJGZYQG select text with shift + mouseclick
  • [9] 7EQLPB3O bugfix: don't delete selection when moving cursor
  • [10] 2CK5QI7W make love event names consistent
  • [11] 4QQBMWLL regression: typing uppercase letters in text
  • [12] JF5L2BBS test harness now supports copy/paste
  • [13] PX7DDEMO autosave slightly less aggressively
  • [14] AD34IX2Z couple more tests
  • [15] AVTNUQYR basic test-enabled framework
  • [16] H5UZI3YN editor documentation
  • [*] 6LJZN727 handle chords
  • [*] 3QNOKBFM beginnings of a test harness

Change contents

  • replacement in reference.md at line 254
    [2.9581][2.9581:9713]()
    * `App.modifier_down(key)` -- returns `true` if the given key (doesn't
    actually have to be just a modifier) is currently pressed.
    [2.9581]
    [2.9713]
    * `App.key_down(key)` -- returns `true` if the given key is currently pressed.
  • replacement in keychord.lua at line 37
    [3.35][3.1697:1763]()
    return App.modifier_down('lctrl') or App.modifier_down('rctrl')
    [3.35]
    [3.107]
    return App.key_down('lctrl') or App.key_down('rctrl')
  • replacement in keychord.lua at line 41
    [3.136][3.1764:1828]()
    return App.modifier_down('lalt') or App.modifier_down('ralt')
    [3.136]
    [3.206]
    return App.key_down('lalt') or App.key_down('ralt')
  • replacement in keychord.lua at line 45
    [3.237][3.1829:1897]()
    return App.modifier_down('lshift') or App.modifier_down('rshift')
    [3.237]
    [3.311]
    return App.key_down('lshift') or App.key_down('rshift')
  • replacement in keychord.lua at line 49
    [3.292][3.1898:1962]()
    return App.modifier_down('lgui') or App.modifier_down('rgui')
    [3.292]
    [3.888]
    return App.key_down('lgui') or App.key_down('rgui')
  • replacement in app.lua at line 232
    [3.2062][3.4495:4527]()
    function App.modifier_down(key)
    [3.2062]
    [3.7803]
    function App.key_down(key)
  • replacement in app.lua at line 447
    [3.3061][3.2263:2306]()
    App.modifier_down = love.keyboard.isDown
    [3.3061]
    [3.5534]
    App.key_down = love.keyboard.isDown