Skip to content
This repository has been archived by the owner on Jan 26, 2018. It is now read-only.

Control + character gives incorrect events #71

Open
dirthsj opened this issue Jul 5, 2015 · 0 comments
Open

Control + character gives incorrect events #71

dirthsj opened this issue Jul 5, 2015 · 0 comments

Comments

@dirthsj
Copy link

dirthsj commented Jul 5, 2015

CC will not fire a "char" event when control is held while pressing a character (eg. m). However, it will fire a "key" event, and my tests conclude Mimic does not.

To test:

while true do
  local event = {os.pullEvent()}
  if event[ 1 ] == "key" then
    os.queueEvent( "dummy" )
    if os.pullEvent() == "dummy" then
      --no char event was fired
      --check the key code
      print( event[ 2 ] )
    end
  end
end

Run the script, hold left control and press "m". The number 29 will be printed (code for control) but the number for m (50) will not.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant