{"action":"created","issue":{"url":"https://api.github.com/repos/primefaces-extensions/primefaces-extensions.github.com/issues/341","labels_url":"https://api.github.com/repos/primefaces-extensions/primefaces-extensions.github.com/issues/341/labels{/name}","comments_url":"https://api.github.com/repos/primefaces-extensions/primefaces-extensions.github.com/issues/341/comments","events_url":"https://api.github.com/repos/primefaces-extensions/primefaces-extensions.github.com/issues/341/events","html_url":"https://github.com/primefaces-extensions/primefaces-extensions.github.com/issues/341","id":84620002,"number":341,"title":"KeyFilter Turkish Keyboard Problem","user":{"login":"tolgaonbay","id":1374067,"avatar_url":"https://avatars.githubusercontent.com/u/1374067?v=3","gravatar_id":"","url":"https://api.github.com/users/tolgaonbay","html_url":"https://github.com/tolgaonbay","followers_url":"https://api.github.com/users/tolgaonbay/followers","following_url":"https://api.github.com/users/tolgaonbay/following{/other_user}","gists_url":"https://api.github.com/users/tolgaonbay/gists{/gist_id}","starred_url":"https://api.github.com/users/tolgaonbay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tolgaonbay/subscriptions","organizations_url":"https://api.github.com/users/tolgaonbay/orgs","repos_url":"https://api.github.com/users/tolgaonbay/repos","events_url":"https://api.github.com/users/tolgaonbay/events{/privacy}","received_events_url":"https://api.github.com/users/tolgaonbay/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-03T15:25:21Z","updated_at":"2015-06-04T22:20:15Z","closed_at":null,"body":"Hi,\r\n\r\nWe found a bug in keyFilter component that is AFAIK only valid in Turkish keyboards. Some of the special characters (e.g. #, $, @, ...) can be used even if they are filtered out in the component with a valid regex. Those characters that I mentioned are generated with an AltGr key. Some of the mappings include:\r\n```\r\nAltGr + 3 => #\r\nAltGr + 4 => $\r\nAltGr + Q => @\r\nAltGr + ] => ~\r\n```\r\n\r\nFor example with below definition, users can enter #, $, @ characters in a Turkish keyboard.\r\n```xml\r\n<pe:keyFilter for=\"vkn\" regEx=\"/[0-9]/i\" preventPaste=\"false\" />\r\n```\r\n\r\nYou can look at the Turkish keyboard layout from http://ascii-table.com/keyboard.php/179\r\n\r\nAt the below line, e.ctrlKey and e.altKey are both true for the specified key strokes. I don't think it is a right solution, but if I remove the if condition from the script, it works like a charm. If you could tell me what this if condition is written for, I can create a fix and send it back to you guys. \r\n\r\nhttps://github.com/primefaces-extensions/core/blob/master/src/main/resources/META-INF/resources/primefaces-extensions/keyfilter/0-jquery.keyfilter.js#L104\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/primefaces-extensions/primefaces-extensions.github.com/issues/comments/109071531","html_url":"https://github.com/primefaces-extensions/primefaces-extensions.github.com/issues/341#issuecomment-109071531","issue_url":"https://api.github.com/repos/primefaces-extensions/primefaces-extensions.github.com/issues/341","id":109071531,"user":{"login":"ova2","id":767334,"avatar_url":"https://avatars.githubusercontent.com/u/767334?v=3","gravatar_id":"","url":"https://api.github.com/users/ova2","html_url":"https://github.com/ova2","followers_url":"https://api.github.com/users/ova2/followers","following_url":"https://api.github.com/users/ova2/following{/other_user}","gists_url":"https://api.github.com/users/ova2/gists{/gist_id}","starred_url":"https://api.github.com/users/ova2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ova2/subscriptions","organizations_url":"https://api.github.com/users/ova2/orgs","repos_url":"https://api.github.com/users/ova2/repos","events_url":"https://api.github.com/users/ova2/events{/privacy}","received_events_url":"https://api.github.com/users/ova2/received_events","type":"User","site_admin":false},"created_at":"2015-06-04T22:20:15Z","updated_at":"2015-06-04T22:20:15Z","body":"Thomas, what do you think, would be the patch ok?"}}