"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/Edit/Interface/edit_keyboard.cpp" between
TeXmacs-1.99.4-src.tar.gz and TeXmacs-1.99.5-src.tar.gz

About: GNU TeXmacs is a what-you-see-is-what-you-get scientific text editor, which was both inspired by TeX and GNU Emacs.

edit_keyboard.cpp  (TeXmacs-1.99.4-src):edit_keyboard.cpp  (TeXmacs-1.99.5-src)
skipping to change at line 238 skipping to change at line 238
edit_interface_rep::handle_keypress (string key, time_t t) { edit_interface_rep::handle_keypress (string key, time_t t) {
bool started= false; bool started= false;
#ifdef USE_EXCEPTIONS #ifdef USE_EXCEPTIONS
try { try {
#endif #endif
if (DEBUG_KEYBOARD) { if (DEBUG_KEYBOARD) {
//for (int i=0; i<N(key); i++) //for (int i=0; i<N(key); i++)
// cout << ((int) (unsigned char) key[i]) << " "; // cout << ((int) (unsigned char) key[i]) << " ";
//cout << "\n"; //cout << "\n";
debug_keyboard << "Pressed " << key << " at " << t << "\n"; debug_keyboard << "Pressed " << key << " at " << t << "\n";
debug_keyboard << " Codes";
for (int i=0; i<N(key); i++)
debug_keyboard << " " << (unsigned int) (unsigned char) key[i];
debug_keyboard << "\n";
} }
//time_t t1= texmacs_time (); //time_t t1= texmacs_time ();
if (is_nil (eb)) apply_changes (); if (is_nil (eb)) apply_changes ();
start_editing (); start_editing ();
started= true; started= true;
string zero= "a"; zero[0]= '\0'; string zero= "a"; zero[0]= '\0';
string gkey= replace (key, zero, "<#0>"); string gkey= replace (key, zero, "<#0>");
if (gkey == "<#3000>") gkey= "space";
call ("keyboard-press", object (gkey), object ((double) t)); call ("keyboard-press", object (gkey), object ((double) t));
update_focus_loci (); update_focus_loci ();
if (!is_nil (focus_ids)) if (!is_nil (focus_ids))
call ("link-follow-ids", object (focus_ids), object ("focus")); call ("link-follow-ids", object (focus_ids), object ("focus"));
notify_change (THE_DECORATIONS); notify_change (THE_DECORATIONS);
end_editing (); end_editing ();
//time_t t2= texmacs_time (); //time_t t2= texmacs_time ();
//if (t2 - t1 >= 10) cout << "handle_keypress took " << t2-t1 << "ms\n"; //if (t2 - t1 >= 10) cout << "handle_keypress took " << t2-t1 << "ms\n";
#ifdef USE_EXCEPTIONS #ifdef USE_EXCEPTIONS
} }
 End of changes. 2 change blocks. 
0 lines changed or deleted 5 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS