{"action":"created","issue":{"url":"https://api.github.com/repos/rime/librime/issues/60","labels_url":"https://api.github.com/repos/rime/librime/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/rime/librime/issues/60/comments","events_url":"https://api.github.com/repos/rime/librime/issues/60/events","html_url":"https://github.com/rime/librime/issues/60","id":113567705,"number":60,"title":"空碼清屏","user":{"login":"osfans","id":7677088,"avatar_url":"https://avatars.githubusercontent.com/u/7677088?v=3","gravatar_id":"","url":"https://api.github.com/users/osfans","html_url":"https://github.com/osfans","followers_url":"https://api.github.com/users/osfans/followers","following_url":"https://api.github.com/users/osfans/following{/other_user}","gists_url":"https://api.github.com/users/osfans/gists{/gist_id}","starred_url":"https://api.github.com/users/osfans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osfans/subscriptions","organizations_url":"https://api.github.com/users/osfans/orgs","repos_url":"https://api.github.com/users/osfans/repos","events_url":"https://api.github.com/users/osfans/events{/privacy}","received_events_url":"https://api.github.com/users/osfans/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rime/librime/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-10-27T12:04:10Z","updated_at":"2015-11-02T01:01:31Z","closed_at":null,"body":"http://tieba.baidu.com/p/2316742388\r\n\r\n空碼時，自動清屏。\r\n或者空碼按空格時，手動清屏。目前似乎是字母上屏。\r\n\r\n不知跟語句流等功能是否有衝突。"},"comment":{"url":"https://api.github.com/repos/rime/librime/issues/comments/152884598","html_url":"https://github.com/rime/librime/issues/60#issuecomment-152884598","issue_url":"https://api.github.com/repos/rime/librime/issues/60","id":152884598,"user":{"login":"osfans","id":7677088,"avatar_url":"https://avatars.githubusercontent.com/u/7677088?v=3","gravatar_id":"","url":"https://api.github.com/users/osfans","html_url":"https://github.com/osfans","followers_url":"https://api.github.com/users/osfans/followers","following_url":"https://api.github.com/users/osfans/following{/other_user}","gists_url":"https://api.github.com/users/osfans/gists{/gist_id}","starred_url":"https://api.github.com/users/osfans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osfans/subscriptions","organizations_url":"https://api.github.com/users/osfans/orgs","repos_url":"https://api.github.com/users/osfans/repos","events_url":"https://api.github.com/users/osfans/events{/privacy}","received_events_url":"https://api.github.com/users/osfans/received_events","type":"User","site_admin":false},"created_at":"2015-11-02T01:01:31Z","updated_at":"2015-11-02T01:01:31Z","body":"@lotem 是的，打滿最大碼長無選，需要按空格清屏。@rimefans 用的就是這種，也就是下面的第二種。\r\n\r\n```yaml\r\nspeller:\r\n   auto_clear: manual | auto | max_length\r\n```\r\n這個果然清晰。\r\n\r\n以五筆最長4碼爲例，空碼確認鍵爲空格或下一碼\r\n目前是將空格在`composing &&!has_menu`時映射爲Escape，直接改成空格清屏似乎改動較大，暫時就不改了。\r\n\r\n1. auto_clear：空碼按確認鍵清屏 # manual\r\n1. auto_clear && auto_clear_at_max：僅4碼空碼按確認鍵清屏  \r\n1. auto_clear &&  auto_clear_commit：空碼自動清屏  #auto\r\n1. auto_clear &&  auto_clear_commit && auto_clear_at_max：僅4碼空碼自動清屏 #max_length\r\n\r\n或許第4種情況沒人用，那就把第二種改成max_length。\r\n\r\n另外，`no_menu`試驗過了，跟下面的效果一樣，英文時也會清屏。所以暫且不改了。\r\n```yaml\r\n- { when: composing, accept: space, send: Escape }\r\n- { when: has_menu, accept: space, send: space }\r\n```\r\n"}}