Template repo for tiny cross-platform apps that can be modified on phone, tablet or computer.
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge carousel2.love

+16 -5
+3
README.md
··· 73 73 * `ctrl+z` to undo, `ctrl+y` to redo 74 74 * `ctrl+=` to zoom in, `ctrl+-` to zoom out, `ctrl+0` to reset zoom 75 75 * `alt+right`/`alt+left` to jump to the next/previous word, respectively 76 + Only left alt is supported, because many keyboard layouts use right alt like 77 + shift for typing characters, and I don't know how to figure out the current 78 + layout. 76 79 * mouse drag or `shift` + movement to select text, `ctrl+a` to select all 77 80 78 81 Exclusively tested so far with a US keyboard layout. If
+3 -2
edit.lua
··· 688 688 return 689 689 end 690 690 if move.to_coord(editor, editor.cursor) == nil then return end -- cursor is off screen 691 - if keychord.any_modifier_down() and key_down(t) then 692 - -- The modifiers didn't change the key. Handle it in keychord_press. 691 + -- textinput events can occur on chords with the shift key or AltGr key 692 + -- but not for ctrl, alt or cmd/super/gui 693 + if keychord.ctrl_down() or keychord.alt_down() or keychord.cmd_down() then 693 694 return 694 695 end 695 696 if not readonly then
+8 -2
keychord.lua
··· 47 47 end 48 48 end 49 49 50 - function keychord.any_modifier_down() 51 - return keychord.ctrl_down() or keychord.alt_down() or keychord.shift_down() or keychord.cmd_down() 50 + -- Many keyboard layouts use a special altGr key to insert additional 51 + -- printable characters. SDL/LÖVE can't represent altGr distinctly. 52 + function I.alt_gr_down() 53 + return key_down('ralt') 52 54 end 53 55 56 + -- altGr is a separate modifier and never considered with alt or ctrl, 57 + -- regardless of layout. 54 58 function keychord.ctrl_down() 59 + if I.alt_gr_down() then return false end 55 60 return key_down('lctrl') or key_down('rctrl') 56 61 end 57 62 58 63 function keychord.alt_down() 64 + if I.alt_gr_down() then return false end 59 65 return key_down('lalt') or key_down('ralt') 60 66 end 61 67
+2 -1
reference.md
··· 87 87 Provides in `chord` a string representation of the current key combination, 88 88 consisting of the key with the following prefixes: 89 89 * `C-` if one of the `ctrl` keys is pressed, 90 - * `M-` if one of the `alt` keys is pressed, 90 + * `M-` if the left `alt` key is pressed (right alt has other meanings in 91 + some keyboard layouts, so we never check for it), 91 92 * `S-` if one of the `shift` keys is pressed, and 92 93 * `s-` if the `windows`/`cmd`/`super` key is pressed. 93 94