thedevil7
V2EX  ›  反馈

回复快捷键 ctrl + enter

  •  
  •   thedevil7 · Apr 4, 2012 · 5260 views
    This topic created in 5341 days ago, the information mentioned may be changed or developed.
    如果在回复的时候能直接打完字 ctrl + enter 回复, 使用感受会不会更爽快?
    12 replies  •  1970-01-01 08:00:00 +08:00
    fanzeyi
    fanzeyi
    Apr 4, 2012
    2
    第一个转义挂掉了 @Livid
    TashinV
    TashinV
    Apr 4, 2012
    3
    tab+space
    Livid
    Livid
    MOD
    PRO
    Apr 4, 2012
    4
    @fanzeyi 多谢你发现了一个新 bug。
    thedevil7
    thedevil7
    OP
    Apr 4, 2012
    5
    @Livid 这个问题重复提了好多次了, 不如把这个放入 V2EX 的教程贴把. 我记得最开始来 V2EX 的时候, 右边貌似有类似的东西.
    Livid
    Livid
    MOD
    PRO
    Apr 4, 2012
    6
    @thedevil7 这个问题我是有点犯拖延症。

    大家谁可以推荐一个这方面比较简洁的实现代码么?
    akai
    akai
    Apr 4, 2012
    9
    $('#reply_content').keydown(function(e) {
    if ( e.ctrlKey && e.keyCode === 13 ) {
    $(this).closest('form').submit();
    }
    });
    NemoAlex
    NemoAlex
    Apr 4, 2012
    10
    Tab then Enter 是更贴近浏览器的交互方式
    thedevil7
    thedevil7
    OP
    Apr 4, 2012
    11
    @NemoAlex 恩, 学习了~~~
    NemoAlex
    NemoAlex
    Apr 4, 2012
    12
    @Livid 另外说一个 issue: 像我这种宽度不足的头像,在这个页面里应该是居中会比较好吧?
    目前是居左
    在盛放头像的 td 上加入样式 text-align: center 即可
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4432 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 45ms · UTC 08:12 · PVG 16:12 · LAX 00:12 · JFK 03:12
    ♥ Do have faith in what you're doing.