2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

HipChat クライアントアプリをEnterで改行できるようにする

Last updated at Posted at 2018-06-24

目的

HipChatのクライアントアプリ(Windows版) でEnterキーは、送信に割り当てられている。
改行しようとして途中送信してしまうことがよくあるので防ぎたい。

方法

アプリケーションのフォルダにある「hipchat-client.js」を書き換える。
例)C:\Program Files (x86)\Atlassian\HipChat4\localweb\hipchat-client.js

1. hipchat-client.jsから以下の記述を見つける

hipchat-client.js
if (evt.keyCode === _utils2.default.keyCode.Enter && !evt.shiftKey) {

2. evt.shiftKey のエクスクラメーションマークを外す

hipchat-client.js
if (evt.keyCode === _utils2.default.keyCode.Enter && evt.shiftKey) {

3.クライアントアプリ起動中の場合は再起動する

※アプリのアップデートなどでhipchat-client.jsの内容が更新されると改行キーが戻ってしまうので注意

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?